In Windows 7 right click My Computer and select Properties > Advanced.
In Windows 8 go to Control Panel > System > Advanced System Settings.
Click the Environment Variables button.
Under System Variables, click New.In the Variable Name field, enter:JAVA_HOME or JRE_HOME
In the Variable Value field, enter your JDK or JRE installation path for eg, C:Progra~1Javajdk1.8.0_65.
Which environment variable points to java home directory?
What is CLASSPATH and is the purpose of it?