-
System variables → new java_home variable.
Variable value fill in the JDK installation directory (I am E:\Java\jdk1.7.0)
- System variables → find Path variable → edit
Enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;
(Note that the original path of the variable value at the end of there is no; number, if not, first enter; number and then enter the above code)
- System variables → new CLASSPATH variable
Variable values are filled in.; %java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)
System Variable Configuration complete
- Verify that the configuration is running successfully cmd input java-version (there are spaces between Java and-version)
If the version information is displayed, the installation and configuration are successful.
Configure Java environment variables under win