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:
Caution: Always use capital letters for fill the value in Variable Name.1. Go to the Computer make a right click on it and click on the Properties2. 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 Variables4. Click on the New and write JAVA_HOME in Variable Name andC:\Program Files\Java\jdk1.6.0_33 in Variable value.5. OK >>> OK>>> Exit
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