Installation Tutorial: JDK Download and Installation_Update 2022

1. Download JDK

1.Choose a path

1.1 Oracle official website ( https://www.oracle.com )

1.2 Click the link directly ( Java Downloads | Oracle )
1.3 For the historical version of
jdk and jre other versions , click the link and pay attention to scroll down the page to see it

2.Download

Select the jdk version according to your own needs, and then download it accordingly
insert image description here

3. Download completed

The file appears when the download is complete
insert image description here

2.JDK installation

Directly unzip the zip file downloaded in the above steps, and the following picture will appear.
insert image description here

3. Configure environment variables

1. Enter advanced system settings

Method 1: Select the desktop computer, right-click this computer, and click Properties to enter the system information interface.

Method 2: Through "Control Panel", select "System and Security", then select "System"

Click Advanced System Settings on the left side of the system information interface.
insert image description here

2. In the advanced system settings interface, click Environment Variables
insert image description here
3. Set 3 attributes in the system variables of the environment variables, JAVA_HOME, Path, CLASSPATH. If it exists, "Edit" on this basis, if it does not exist, "Create"
insert image description here
3.1 JAVA_HOME

Create a new JAVA_HOME variable, the variable value is the JDK installation directory
insert image description here
3.2 Path

Edit the Path system variable and create a new value %JAVA_HOME%\bin
insert image description here

4. Verify whether the JDK is installed successfully

1. Use the win+R shortcut key to open Run, enter cmd to enter the command prompt
insert image description here
2. Enter java -version to check the java version. If the following message appears, the installation is successful.
insert image description here
Complete links to other installation steps
1. Java download and installation tutorial

Guess you like

Origin blog.csdn.net/Daisy74RJ/article/details/123903242