1. Download JDK
jdk-7u79-windows-x64.exe
C:\Program Files\Java\jdk1.7.0_79
2. Configure JDK
advanced
Environment variable
New environment variable
JAVA_HOME
C:\Program Files\Java\jdk1.7.0_79
New system environment variable CLASSPATH
Set the CLASSPATH value to: ./;%JAVA_HOME%/lib/tools.jar;%JAVA_HOME%/lib/dt.jar
CLASSPATH: ./;%JAVA_HOME%/lib/tools.jar;%JAVA_HOME%/lib/dt.jar (Note: the dot indicates the current directory and cannot be omitted)
Update system environment variable Path
Add ";%JAVA_HOME%/bin;" (note: the semicolon here cannot be omitted), add it to the front of Path.
3. Testing
The installation is complete.