Home  >  Forum  >  Core Java
Post New Query

How to set java home , class path and path?

joined on
October 06,2013
Asked on October 06,2013
Please tell me how to set java_home, class path, and path in windows 7?
joined on
October 06,2013
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.

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.

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

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

Write Answer

Copyright ©2017 concretepage.com, all rights reserved |Privacy Policy | Contact Us