First in the following system variable column Click New, variable name fill java_home, variable value to fill the JDK installation path, here to fill out the JDK installation path, just above the show me is "C:\Program files\java\jdk1.6.0_39".
In the system variable, click the new variable name to fill in the CLASSPATH, variable value to fill in. %java_home%\lib;%java_home%\lib\tools.jar be careful not to forget the front dot and the middle semicolon.
Find the path variable in the system variable, which is the system's own, not new. Double-click Path, because Win10 and Win7 are different. Win7 environment variables are all in one, each separated by semicolons, and Win10 automatic branch, so do not use semicolons, so built environment variable a little different, divided into two lines, click New, the%java_home%\bin copied into, and then re-create the following this%JAVA_HOME%\JRE \ bin, and then the Gaocheng. Next Test is successful
At this point, the environment variables that should be configured are complete. Verification method: Windows+r Call up the Run box, enter CMD, enter the command line. Then enter Java and press ENTER to display the following screen
WIN10 Environment variables