Wednesday, January 26, 2011

Enviromental Variables

Setting up Environmental Variables is critical to having the software development kits working properly.  It allows a developer to by in any directory and still have command access to developers tools.

For Windows:
  1. Click Start
  2. Right click my Computer and select Properties
  3. On the left menu of the system properties select "Advanced System Properties"
  4. A new box will load and select the "Advanced" Tab and click the "Environmental Variables" button towards the bottom of this window.
  5. An Environmental Variables window loads up and this is where we enter our new system variables
  6. In the System Variables section click the "New..." button to add a new environmental variable
  7. In the new box window that pops up there are 2 input sections.
  8. For the Variable Name and the Variable Path fields I entered the following
    1. Name:ANT_HOME
      Path: C:\Development\apache-ant-1.8.2;
    2. Name:APPENGINE_HOME
      Path:C:\Development\appengine-java-sdk-1.4.0;
    3. Name:CLASSPATH
      Path:%CLASSPATH%;%JAVA_HOME%\lib;%ANT_HOME%\lib;%GWT_HOME%;%APPENGINE_HOME%\lib;
    4. Name:GWT_HOME
      Path:C:\Development\gwt-2.1.1;
    5. Name: PATH
      Path: %PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin;%GWT_HOME%;%APPENGINE_HOME%\bin%;
  9. I clicked okay to close the windows and save the variables. 
  10. 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)

No comments:

Post a Comment