Setting the Java_Home Variable In Windows 10: This can be followed in Windows 8 and Windows 7 too.
This article will guide you How to set java_home variable classpath in Windows 10.
JAVA_HOME is an environment variable (in Unix terminologies), or a PATH variable (in Windows terminology). A lot of well behaving Java applications (which need the JDK/JRE) to run, looks up the JAVA_HOME variable for the location where the Java compiler/interpreter may be found.
After you’ve installed Java in Windows, you must set the ”
JAVA_HOME” environment variable to point to the Java installation directory.