Install the jdk1.8 version (download link: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) specific steps.
Step 1: Download and install the jdk1.8 version, click Jdk-8u101-windows-x64.exe (This version is a Windows 64-bit system), as long as the step by step, until the installation is complete.
Step 2: After the installation, click on the desktop computer, right button properties, click on the left "advanced system Settings", click the advanced environment variable, this is click on the following system environment variable-new (System environment variable)
Setting the Edit System environment variable
Variable name Java_home
Variable Value C:\Program files\java\jdk1.8.0_101 (this value is the specific installation path of the JDK C:\Program files\java\jdk1.8.0_101, the specific physical location of the JDK)
As shown
Step 3:
Similarly, in the system environment variable, set CLASSPATH.
New (System environment variable)
Setting the Edit System environment variable
Variable name CLASSPATH
The value of the variable .; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar;
( note : When setting this value, be sure to note the previous . ) Symbol
As shown
Step 4:
Similarly, in the system environment variable, set path.
Find path, select Edit (System environment variable)
Setting the Edit System environment variable
Variable name PATH
The value of the variable is%java_home%\bin;%java_home%\jre\bin; (note: Just put this sentence directly to the front of the path)
As shown
Through the above steps, the JDK configuration environment has been configured, testing: Click Run cmd pop-up DOS interface, enter JAVAC, the following interface is the success
If the above interface is not present, it may be an issue with the configuration environment, specifically check the semicolon in step 2, and the. or% number.
Configuring JDK Environment variables under Windows 7