WIN10 the Java environment variable configuration
First, you should already have Java's JDK installed (if you don't have a JDK installed, skip to this URL: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)
The author installs the jdk-8u91-windows-x64
Next the main talk about how to configure the environment variables of Java, but also for the next day I forgot to make a backup
(Note: Win10 's Java environment variable configuration is slightly different from other versions of Windows)
Right-click on the "Properties" option of "this PC" on the computer desktop
Select the Advanced system Settings option
Click on the "Environment variables" option below
The next step is the specific configuration process:
Click the "new" option under "System Variables"
Fill in "Java_home" at "Variable name"
"Variable Value" is the JDK installation path, the author's path is "D:\Program files\java\jdk1.8.0_91"
Click the "OK" option
Find "Path" in "System variables"
Select "Path" to click "Edit" option
Select Edit text on the right, copy all of the quotes inside "%java_home%\bin;%java_home%\jre\bin;", to the front of the "Variable Value" column, "OK"
In the "System Variables" column, "new", "Variable name" is "CLASSPATH", "Variable Value" is ".; %java_home%\bin;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar "," OK "
Click the "OK" option at the bottom of "environment variables"
Go back to your desktop, press the shortcut key "Win+r", enter "cmd"
Check if the Java environment is configured successfully
Enter "Java"
Enter "Javac"
Enter "Java-version"
If the above three pictures are seen, congratulations, the environment variable configuration is OK!
Windows Ten Java environment variable configuration