Windows 10 Java environment variable configuration, java environment variable
Java environment variable configuration in Win10
First, you should have installed the Java JDK (if not installed JDK, please jump to this URL: http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html)
The author installed jdk-8u91-windows-x64
Next, I will focus on how to configure the Java environment variables so that I forget to make a backup one day later.
(Note: The Java environment variable configuration of win10 is slightly different from that of other windows versions)
Right-click the "properties" option of "this computer" on the desktop
Select "Advanced System settings"
Click the "environment variable" option below
The specific configuration process is as follows:
Click "new" under "system variables ".
Fill in "Java_Home" in "variable name"
"Variable value" is the JDK installation path. The author's path is "D: \ Program Files \ Java \ jdk1.8.0 _ 91"
Click "OK"
Find "Path" in "system variable"
Select "Path" and click "edit ".
Select edit text on the right and copy all the quotation marks to "% Java_Home % \ bin; % Java_Home % \ jre \ bin ;", to the beginning of the "variable value" column, "OK"
In the "System variables" column, "new", "variable name" is "CLASSPATH", and "variable value" is ".; % Java_Home % \ bin; % Java_Home % \ lib \ dt. jar; % Java_Home % \ lib \ tools. jar "," OK"
Click "OK" at the bottom of "environment variables"
Return to the desktop, press Win + R, and Enter cmd"
Check whether the Java environment is configured successfully.
Enter "java"
Enter "javac"
Enter "java-version"
If you have seen all the above three images, congratulations! environment variables have been configured!