The first step is to download the JDK
Official: http://www.oracle.com/technetwork/java/javase/downloads/index.html, then click Downloads.
JDK1.7 and JDK1.8 can go to my Baidu cloud download: Https://pan.baidu.com/s/1jJv6dMI Password: ep4i
Jump to the following page, select the corresponding version is OK, here Select WinDOS 64-bit version.
install the JDK in the second step
Click on the downloaded "Jdk-9.0.4_windows-x64_bin.exe" file and follow the instructions in the figure.
Installation is complete!
Step three Configure environment variables
First find the installation path of the JDK, the next step will be used, this is the path I installed: C:\Program files\java\jdk-9.0.4.
Back to the desktop, select Computer, right-click Properties-Advanced system settings-environment variables
Select New System environment variable
We need to create a new three system environment variables: java_home, Path, Class_path. (Class_path in the JDK1.5 version without configuration, here we also do not configure)
Java_home configuration variable Name: Java_home value: C:\Program files\java\jdk-9.0.4 (depending on the actual installation path of the JDK)
Path (environment variable) configuration variable name: Path value:%java_home%\bin;%java_home%\jre\bin;
Configuration Complete!
Fourth Step test configuration is successful
Java Development Environment Configuration (Windows System)