JDK the latest version has been out of the jdk8u60, after the download installation is complete, also need to configure environment variables, the following small series to share the next JDK 8.0 environment variable Configuration tutorial, I hope you like.
jdk8.0 environment Variable Configuration tutorial
Right-click computer → properties → advanced system settings → advanced → environment variables
1. System variables → New
Variable name: java_home
Variable Value: (Variable value fill in the installation directory of your JDK, for example, I am C:\Program files\java\jdk1.8.0_60)
2. Locate the Path variable in the system variable and select Edit
Enter%java_home%\bin;%java_home%\jre\bin at the end of the variable value;
(Note that if the original path is not at the end of the variable value , enter it first, and then enter the above code)
3. System variables → New
Variable name: CLASSPATH
Variable value:.%java_home%\lib;%java_home%\lib\tools.jar (Note that there is a point in the front)
4. Verify that the JDK is configured successfully: Run the cmd input java-version (there are spaces between Java and-version) or javac-version
============== Memo ================
Windows Java JDK8 Configuration environment variables