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
, and click Next.
3. Select the installation directory.
4. Wait for the progress bar to finish reading, and then a window will pop up.
5. Wait for the end of the reading.
6. The installation is successful, click close.
Three, configure the environment
1. Right-click this computer , click Properties , click Advanced System Settings , find environment variables , and click into it.
2. Create a new JAVA_HOME in the system variables, the value is the jdk installation path:
3. Add variables.
Variable name: CLASSPATH
variable value: .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
(Note:. And; before the variable value)
4. Configure Path.
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)
2. Enter the commands in sequence: java, javac, and verify whether the installation is successful.
! [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
this point, the installation is over.