JDK (download, installation, environment configuration detailed graphics)

It is a blogger's honor to help you solve problems, and your support is the biggest motivation for my creation! :) Welcome to follow and like

1. JDK download

Tip: Before installing, you need to confirm which version of jdk you need to avoid wasting time.

Official website download:
https://www.oracle.com/downloads/
Baidu cloud disk download:
Link: https://pan.baidu.com/s/1RgKTlhDKNM-Iag9hMUXvnw
Extraction code: 904s

Official website download tutorial
1. First open https://www.oracle.com/downloads/

insert image description here

2. Select Products in the upper left corner, and then select Java in the lower left corner.

insert image description here

3. Select Download Java now.

insert image description here

4. Select the jdk version in windows to download.

insert image description here

5. If you want to download other versions, select Java archive.

insert image description here

6. Here, the jdk8 version is taken as an example, and Java SE 8 is selected.

insert image description here

7. Find the corresponding version to download, here the blogger chooses windows64 bit to download, just wait for the download to complete.

insert image description here

Two, JDK installation

1. Double-click the downloaded .exe file, and select "Yes" if there is user control.

insert image description here
insert image description here

2. After the installed program pops up, select Next

insert image description here

3. If you need to change the installation directory of the file, select "Change", if the default installation directory is directly "Next"

insert image description here

Bloggers like to customize the installation directory, and it is recommended to customize it. If it is more convenient to manage later

insert image description here

4. The follow-up basic operations are basically "next step". If there is a jre installation directory, it can be customized or default. Until the installation is completed, perform the following environment configuration operations.

3. JDK environment configuration

1. On the computer desktop, select "My Computer", then right-click and select "Properties", and find "Advanced System Settings"

insert image description here

2. Open "Environment Variables"

insert image description here

3. Set two places in total, the first one, configure JAVA_HOME, click "New"

insert image description here

4. Enter JAVA_HOME for the variable name, and select the path when you install JDK for the variable value. The default path is C:\Program Files\Java

insert image description here

5. The second is to configure the path variable, just enter %JAVA_HOME%\bin

Why does the above need to create a new JAVA_HOME?
Because if you need to use other JDK versions in the future, the installation directory needs to be changed at any time, so create a new fixed variable JAVA_HOME in the path, and you only need to change the path of JAVA_HOME in the future, and the path does not need to be changed.

insert image description here

6. After setting, select "OK"

insert image description here

7. Select "Apply", "Confirm", the environment configuration is complete, and then proceed to the subsequent verification.

insert image description here

4. Verification

1. Open win+R, enter cmd

insert image description here

2. Enter java -version

insert image description here

3. After seeing the version number and related information, congratulations on completing the installation and configuration of the jdk part! !

insert image description here


Summarize

1. During the installation process, try to choose the folder you created, which will facilitate subsequent management.

Guess you like

Origin blog.csdn.net/King_Treasure/article/details/127885713