After installing the Java Software, executing the following steps to set the environment variables for java
- Go to desktop and right click on the MyComputer Icon.
- Choose the tab named "Advanced"
- After u choose the advanced tab u can see environment variables button down just above the OK button. Click on it
- Then you get to see two types of variables namely user variables and system variables.
- In the user variables click on New button
- Give the variable name as PATH
- Give the variable value as "C:\Program Files\Java\jdk1.6.0\bin;%path%;" (This is the Java install location on the machine)
- In the system variables section Click on New button
- Give the variable name as classpath.
- 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;
0 Comments:
Post a Comment