Monday, December 7, 2009

How to set environment variables for java



After installing the Java Software, executing the following steps to set the environment variables for java


  1. Go to desktop and right click on the MyComputer Icon.
  2. Choose the tab named "Advanced"
  3. After u choose the advanced tab u can see environment variables button down just above the OK button. Click on it
  4. Then you get to see two types of variables namely user variables and system variables.
  5. In the user variables click on New button
  6. Give the variable name as PATH 
  7. Give the variable value as "C:\Program Files\Java\jdk1.6.0\bin;%path%;" (This is the Java install location on the machine)
  8. In the system variables section Click on New button
  9. Give the variable name as classpath.
  10. Give the variable value as some path where you are placing your java files. suppose you want to place all your java programs in a folder named java_programs in "D" drive then u must use the path as D:\java_programs;


Stumble
Delicious
Technorati
Twitter

0 Comments:

Post a Comment