JDK download and installation, environment variable configuration

JDK download and install

JDK download

1. Enter the official website: https://www.oracle.com/java/technologies/downloads/#jdk18-windows
select your own computer system and click download
insert image description here

JDK installation

insert image description here
Double click to install:
insert image description here
insert image description here

When installing, remember your own path to facilitate subsequent operations.
insert image description here
After the installation is complete, click Close
insert image description here

JDK environment variable configuration

1. Search for advanced system settings on the computer and open it
insert image description here
2. Click Environment Variables
insert image description here
3. Click New under System Variables, create a new JAVA_HOME, and the variable value is the JDK installation directory of the previous step;
insert image description here
insert image description here
4. Edit the PATH variable and add the environment variable %JAVA_HOME
insert image description here
After the %\bin configuration is complete, you need to click OK, apply the button, exit step by step, and finally verify

check

1. Press and hold win+R
insert image description here
2. Click the Enter key: Enter
insert image description here
3. Enter java -version to run, and then enter javac -version; the JDK version number is installed after running, and the installation is successful
insert image description here

Guess you like

Origin blog.csdn.net/weixin_44042442/article/details/126823143