Installation and configuration of jdk (minimalist tutorial)

1. Determine the number of bits in the computer system

WIN+R----input dxdiag----check the computer digits
insert image description here

2. Download the jdk paired with the computer system

a) Open the official website:
https://www.oracle.com/java/technologies/downloads/

b) Download the jdk of the corresponding system and install itinsert image description here

3. Configure jdk environment variables

Find the jdk installation directory and copy
insert image description here

Right-click Computer→Properties→Advanced System Settings→Advanced→Environment Variables, create a new system variable (copy the variable value to your own installation directory)
variable name:

JAVA_HOME

insert image description here
Double-click the path variable
insert image description here
New, enter the following values, OK

 %JAVA_HOME%\bin

insert image description here

4. Check if jdk is configured

Win+R----input cmd----input java -version (note the space)

java -version

insert image description here
As shown in the figure, the configuration is successful

Guess you like

Origin blog.csdn.net/m0_50991874/article/details/120372014