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
installation process, you will be prompted to install jre, you can create a new installation folder name according to your own needs
. 3. Configure environment variables
. Right-click on the desktop "My Computer" and select " "Properties" open the "System Control Panel" and select "Advanced System Settings"
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;
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;
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]
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
Enter javac to view jdk information