-
First, download the JDK installation package, download it to the official website http://www.oracle.com/technetwork/java/javase/downloads/index.html, and click Java Platform on the left (JDK ) 7u51 into the next download page,
-
Click on the left of accept License Agreement, accept the license agreement, can download, because I installed the WIN7 64-bit system, so choose the corresponding 64-bit installation package,
-
Windows x64 corresponds to jdk-7u51-windows-x64.exe download,
-
After downloading the installation, I used to install the software to D, you can change the location according to their own habits,
-
After installation is to configure the JDK environment variables, on the desktop computer point right-click Properties, or Start menu computer Right-click Properties, left point advanced system Settings , click the environment variable below,
-
On the new pop-up window, click the New button under the system variable area, pop up the new window, the variable named java_home, the variable value to fill the final path of the JDK installation, I installed the address is D:\Program files\java\ Jdk1.7.0_51, so fill D:\Program files\java\jdk1.7.0_51, click OK to finish,
-
The following need to set the path variable, because the system itself already exists this variable, so do not need to create a new, in the originally added JDK related, find the path variable double-click Edit, because each value between the use ; Symbol breaks, so add at the end first ; (Note that the English format, do not lose other symbols, such as space), plus ; After the symbol is added %java_home%\binat the end, click OK to finish,
-
Add the CLASSPATH variable below, because it does not exist, so create a new one, variable name CLASSPATH, variable value %java_home%lib\dt.jar;%java_home%\lib\ Tools.jar, the end of the space, the point is determined to complete, the environment variable configuration is complete, click OK to switch off the environment Variable Configuration window.
-
After the above steps are completed, the following verifies whether the configuration is successful, click Start run input cmd Open command Line window, enter java-version, display version 1.7.0_51, enter Javac- Version, also displays the 1.7.0_51, indicating that the JDK installation and environment variable configuration was successful.
END
Precautions