1. Install the jdk file
I put the file in the following network disk
Link: https://pan.baidu.com/s/1I9DwpmAF-hnByoPk8bmZBw?pwd=1234
Extraction code: 1234
Click to install
Set the installation location, here I take D drive as an example
The following path is uniformly replaced with the path I set (there is a jre that needs to create a new folder by itself, and it can be set under the java path according to the prompts he gave you)
Right click my computer and click properties
Click on Advanced system settings
Note that it is a system variable, click New
New variable named
JAVA_HOME
variable value
D:\Program Files\Java\jdk1.8.0_74
The variable value is your JDK path (make no mistake, jdk and jre are in the same folder)
Create a new CLASSPATH variable, the variable value is
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
Find the Path system variable, select it and click Edit
enter
%JAVA_HOME%\bin
win+R, enter the cmd command window
enter java
The result is normal
Enter java -version
The result is normal
enter javac
The result is normal
Installation and configuration are complete