Java environment installation/JDK installation

1. Download jdk1.8
Baidu network disk link: https://pan.baidu.com/s/1VrwlfevF0TPUB7Ic7b58FA
Extraction code: 42po

2. Installation
Double-click the downloaded package, it will appear as shown in the figure. During the
Insert picture description here
Insert picture description here
installation process, you will be prompted to install jre, you can create a new installation folder name according to your own needs
Insert picture description here
Insert picture description here
. 3. Configure environment variables
. Right-click on the desktop "My Computer" and select " "Properties" open the "System Control Panel" and select "Advanced System Settings"
Insert picture description here
1). Configure JAVA_HOME, select "User Variables" to create a new, enter the jdk installation path; eg: generally select user variables, so that it will not affect other users of the system;
Insert picture description here

2). Configure the PATH, fill in the bin directory under the JDK installation directory for the variable value. Because "JAVA_HOME" has been configured, it can be set through the JAVA_HOME variable, which is more flexible. If you want to change the JDK next time, you only need to modify JAVA_HOME. can;
Insert picture description here

3). Configure the CLASSPATH, fill in the JDK-related jar package for the variable value, which is also set by the JAVA_HOME variable, you can directly write %JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar, and then continue [OK]
Insert picture description here
4. Verify that the configuration is successful.
Click the [Start] menu, enter cmd to enter the command mode (or use the "Win+R" shortcut to call out the running window, and then enter cmd during running), enter "java -version" to view Install version
Insert picture description here
Enter javac to view jdk information
Insert picture description here

Guess you like

Origin blog.csdn.net/zhaoweiya/article/details/110653951
Recommended