The JDK (Java Development Kit) is the Java Language Software Development Kit (SDK).
Open Oracle website, url http://www.oracle.com
Click Menu-developers--downloads
Page DOWN, click Java SE
Page DOWN to find the Java archive click on the Download button on the right.
Click on "Java Se 8"
Agree to the license agreement and select the version you want to download
To install the JDK:
Double-click Jdk-8u144-windows-x64.exe
Next
Select the installation path and click Next
Next
Click Close to complete the installation
Next: Configure the JDK environment variables
Right-click Computer---Properties
Click "Advanced System Settings"
Click on "Environment variables ..."
Click the user variable-New button
Note: Environment variables are divided into user environment variables and system environment variables, user environment variables are valid for the current user, the system environment variable is valid for all users of this system, it is said that the scope of the system environment variable is greater than the user environment variable, it is generally recommended to configure user environment variables.
Set the variable name to Java_home, the variable value is the JDK installation path, click the "OK" button.
Click the new User environment variable button again
The variable name is set to path, the value of the variable is%java_home%\bin, if the path variable already exists, you do not need to create, directly edit the path variable, the path variable can set multiple paths, multiple paths separated by semicolons [;] For example:%java_home%\ Bin;%m3_home%\bin
Next step: Verify that the JDK is installed successfully
Start---Run---cmd "windows+r"
Enter the Java–version command
Java tutorial, "Installation of JDK and configuration of environment variables"