1. Log in to the Oracle Website.

2) Select Menu \ Java \ Java SE

3) Scroll down to Get Started \ Download Java SE for Developers

4) Click the JDK to download

I am running Windows, so I choose Windows JDK -9.0.4

Please click the following picture for more information (Swipe and add friends → Remark 66, please refuse to add if you don’t comment)

Install the JDK

1) Double-click the downloaded installation package and click Next

2) Click Change path (if no change, go to Step 4 directly)

3) Specify the directory to install and click OK

4) Click Install JDK next

5) Start the installation

6) Install jre, also change the directory (do not change, go to the next step)

7) Wait until the JRE installation is complete

8) After the installation is complete, click close

Configure the Java environment

1) Computer (or my computer), right click, properties

2) Click advanced System Settings, Advanced TAB

3) Click on environment variables

4) Create system variables

5) Variable name: JAVA_HOME, variable value: JDK installation path, my JDK installation path C:\Java\ JDK-9.0.4, then confirm

6) Find the Path variable and click the Edit button

7) Append to variable value; %JAVA_HOME%\bin

8) Click OK to complete the JDK environment variable configuration

9) Repeat Steps 4-8 to configure jre environment variables.

Create environment variable name: JAVA_HOME_JRE Variable value: C:\Java\ JRE-9.0.4

Edit the Path variable to append to its value; %JAVA_HOME_JRE%\bin

Yes, jre environment variables are configured

10) Run (win+R), enter CMD, and press Enter

11) Enter Java -version in the command line and press Enter. If the following figure is displayed, the environment configuration is successful

To this Java JDK, and JDK environment configuration, is complete