For Windows:
- Click Start
- Right click my Computer and select Properties
- On the left menu of the system properties select "Advanced System Properties"
- A new box will load and select the "Advanced" Tab and click the "Environmental Variables" button towards the bottom of this window.
- An Environmental Variables window loads up and this is where we enter our new system variables
- In the System Variables section click the "New..." button to add a new environmental variable
- In the new box window that pops up there are 2 input sections.
- For the Variable Name and the Variable Path fields I entered the following
- Name:ANT_HOME
Path: C:\Development\apache-ant-1.8.2; - Name:APPENGINE_HOME
Path:C:\Development\appengine-java-sdk-1.4.0; - Name:CLASSPATH
Path:%CLASSPATH%;%JAVA_HOME%\lib;%ANT_HOME%\lib;%GWT_HOME%;%APPENGINE_HOME%\lib; - Name:GWT_HOME
Path:C:\Development\gwt-2.1.1; - Name: PATH
Path: %PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin;%GWT_HOME%;%APPENGINE_HOME%\bin%; - I clicked okay to close the windows and save the variables.
- To test to make sure my variables were working I opened up a command prompt and typed in java -version and the following is what should be displayed:
C:\Users\open>java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)