Steps to install jdk

JDK installation steps

One, jdk installation package download

1. Go to the official website to download.
Website: jdk download official website
2, Baidu network disk download.
Link: Extract code: jdkl

Second, install jdk

1. Find the jdk installation package, click into it turn up
, and click Next.
Insert picture description here
3. Select the installation directory.
Insert picture description here
4. Wait for the progress bar to finish reading, and then a window will pop up.

Insert picture description here
5. Wait for the end of the reading.
Insert picture description here
6. The installation is successful, click close.
Insert picture description here

Three, configure the environment

1. Right-click this computer , click Properties , click Advanced System Settings , find environment variables , and click into it.
Insert picture description here
2. Create a new JAVA_HOME in the system variables, the value is the jdk installation path:
Insert picture description here
3. Add variables.
Variable name: CLASSPATH
variable value: .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
(Note:. And; before the variable value)
Insert picture description here
4. Configure Path.
Insert picture description here
5. Click all OK to exit.

4. Verify that the installation is successful

1. Open the doc command window (windows+R, enter cmd, click OK)
Insert picture description here
2. Enter the commands in sequence: java, javac, and verify whether the installation is successful.
Insert picture description here

Insert picture description here
! [Insert Picture description here] (https://img-blog.csdnimg.cn/2020111620080245.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3RhbjEwMjQ=,size_16,color_FFFFFF,t_70#pic_center
3 , Enter java -version to view the jdk version number, and the version number is displayed, indicating that the installation is successful. At
Insert picture description here
this point, the installation is over.

Guess you like

Origin blog.csdn.net/tan1024/article/details/109728808