First, the Environment preparation
Windows10
jdk-9.0.1
Second, download and install the JDK
Download the JDK installation package to the Java website, address: http://www.oracle.com/technetwork/java/javase/downloads/index.html, choose a JDK version for your download and install it, the specific process is not detailed.
Second, the environment variable configuration
1. Right-click on "My Computer" >> "Properties" on the desktop and tap "Advanced system Settings" on the pop-up page.
2. Click the Environment Variables button in the "Advanced" tab of the "System Properties" window that pops up.
3, in the "Environment Variables" window, click the "New" button below, in the popup "New system Variable" window, create a new environment variable named "Java_home", the variable value is the JAVA installation path, I: D:\project\tool\Java\jdk_ 9.0.1.
4, set the PATH environment variable, the variable already exists, so select path in the list, click the "Edit" button below, add the following information in the popup window:%java_home%\bin;%java_home%\jre\bin, then click "Confirm" button. :
5. As with Java_home, create a new environment variable named "Classpath" with the value:%java_home%\lib\dt.jar;%java_home%\lib\tools.jar. :
6, after configuring the environment variable, you can enter CMD to check whether Java is installed correctly, check the command is java-version,:
If the Java version and JVM version information is correctly printed, the Java installation is correct.
Configuration of JDK environment variables in Windows environment