How to set java home , class path and path?




Asked on October 06, 2013
Please tell me how to set java_home, class path, and path in windows 7?



Replied on October 06, 2013
Yeah that is the first step to run a java program. To set a Environment Variable in windows 7 for java.... Just do it.

JAVA_HOME:
1. Go to the Computer make a right click on it and click on the Properties
2. A new window will be open. Now click on the Advanced System setting which is located on the top left corner of the screen.
3. Click on the Environment Variables
4. Click on the New and write JAVA_HOME in Variable Name and 
C:\Program Files\Java\jdk1.6.0_33 in Variable value.
 5. OK >>> OK>>> Exit
Caution: Always use capital letters for fill the value in Variable Name.

CLASSPATH:
1. Variable Name= CLASSPATH
2. Variable Value= C:\Program Files\Java\jdk1.6.0_33\lib\tools.jar

PATH:
1. Variable Name= PATH
2. Variable Value= C:\Program Files\Java\jdk1.6.0_33\bin


Write Answer











©2024 concretepage.com | Privacy Policy | Contact Us