# Windows

## Step 1

Open *System Properties* dialog window and switch to *Advanced* tab. Then click on *Environment Variables...* button, which opens *Environment Variables* dialog. ![](https://3271386179-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3wXpb66WydUuf48oMu%2F-M3xQTa40MQprcFtZxzB%2F-M3xQUKjq81D46NyLRMU%2Fwindows-advanced.png?generation=1585873551125855\&alt=media)

## Step 2

In this step, you are going to set system environment variables for your windows machine. Click on *New\...* button in *System variables* section to add a new system variable.

![](https://3271386179-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3wXpb66WydUuf48oMu%2F-M3xQTa40MQprcFtZxzB%2F-M3xQUKl2ieFDcg_GOPH%2Fwindows-env-var1.png?generation=1585873550928282\&alt=media)

## Step 3

You are going to set Java home in this step, because Grails is Java based technology and you need Java on system in order to run any Grails command. Insert **JAVA\_HOME** into *Variable name* text field. Then insert path to your version of Java 8 into *Variable value* text field.

![](https://3271386179-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3wXpb66WydUuf48oMu%2F-M3xQTa40MQprcFtZxzB%2F-M3xQUKnjOMb9J3i25BL%2Fwindows-javahome.png?generation=1585873551263868\&alt=media)

## Step 4

In this step we are going to set Grails home because you will need to run Grails commands from command line.

Insert **GRAILS\_HOME** into *Variable name* text field and path to Grails installation into *Variable value* text field. You can get Grails binaries from <https://grails.org/download.html>. Just unzip the downloaded archive and provide path to the folder. In our case, it was `grails-3.1.7` on `C:` drive.

![](https://3271386179-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3wXpb66WydUuf48oMu%2F-M3xQTa40MQprcFtZxzB%2F-M3xQUKp5fuWPHfEAoAF%2Fwindows-grails-home.png?generation=1585873551471646\&alt=media)

## Step 5

In this step you will make it possible to run Grails from your command line. Select *Path* variable from the list of system variables and click on *Edit...* button. Go at the end of text in *Variable value* text field and append the path to Grails `bin` folder, in our case `C:\grails-3.1.7\bin`

![](https://3271386179-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M3wXpb66WydUuf48oMu%2F-M3xQTa40MQprcFtZxzB%2F-M3xQUKr_5nC72CKF5DE%2Fwindows-path.png?generation=1585873551083226\&alt=media)

> In case you run into troubles, follow this tutorial: [Setup Grails 3 Windows Development Environment](http://grails.asia/grails-3-tutorial-setup-your-windows-development-environment).

Now you are done and you can proceed to another chapter about project creation.
