The first step
Locate the location of the system settings environment variable (Windows 10): Control Panel \ System and Security \ System Click on ' Advanced system settings ' to see "Environment variables"
Step Two
Set 3 paths
1, path (the location of the configuration JDK command file) paths "path" variable is the same case, if there is no path this is to create a new one, some words directly in the back add a path,
C:\Program files\java\jdk1.8.0_131\bin Java jdk Bin file folder path, look at their path is what copy add in on the line, I write my own J file path, do not use
2, Java_home (JDK installation path) path "java_home" variable and path-like nature
C:\Program files\java\jdk1.8.0_131 Java's path to the JDK package
3. CLASSPATH (Location of the Configuration class library file) same as the path
.; C:\Program Files\java\jdk1.8.0_131\lib Remember that there is a point in the front, here is actually written two paths the first point of the table label relative path, plus a semicolon separated path (because of two paths)
The second path is the Lib path to Java.
When the configuration is complete, click OK.
Verify: Ctrl + R input cmd Open command line Input Java if the carriage return appears a lot of operation usage description path, java_home configuration is right; Re-enter Javac if the carriage return also appears a lot of operation usage instructions CLASSPATH configuration is right,
Then the Java environment is built.
,
Windows Java environment variable configuration