1. Pre-conditions
System: This tutorial takes the WIN7 system as an example
JDK: This tutorial takes jdk-7u79-windows-x64 as an example
2. Installation Steps
Double-click Run JDK Installer
Select Install all: Development tools, source code, public JRE, and select the installation path
Installing in progress
Set the JRE installation directory, where you select the default installation path.
is installing
When the installation is complete, click Close.
3. Environment variable Configuration
Computer--Right-button "Properties"
Select Advanced System Settings
Select Environment variables
In the system variable out select new
Defines the java_home variable, which points to the installation directory of the JDK.
The Supervisor class Path variable Classpath value is Tool.jar and Dt.jar under the JDK installation directory. Be careful not to omit ".", which represents the current path.
Classpath: .; %java_home%\lib\tools.jar; %java_home%\lib\dt.jar
Defines the path variable whose value is the bin under the JDK and the bin under the JRE
Path: %java_home%\bin; %java_home%\jre\bin
4. Test the installation
Enter the java-version and Javac commands in the Command Line window, as shown in the information
At this point, the JDK installation and environment variable configuration is complete.
Java Development Environment Build-JDK installation and environment variable configuration