Configure java environment variables
1. Installation package
jdk installation package: Link: https://pan.baidu.com/s/1_PXVfGBPuu1soWqJ4ZmUwA
Extraction code: 76rj
2. The first method of configuring the environment
(Ps: just follow the picture prompts)
1. Find the advanced system settings, click on environment variables
2. Click path; click New: paste the location of the jdk/bin directory , add it, and click OK.
C:\Program Files\Java\jdk1.8.0_131\bin
3. Click New:
JAVA_HOME
C:\Program Files\Java\jdk1.8.0_131
Click OK, and the environment configuration is complete.
Three. The second method of configuring the environment
(Ps: just follow the picture prompts)
1. Find the advanced system settings, click on environment variables
2. Click path; click New: paste the location of the jdk/bin directory , add it, and click OK to complete.
C:\Program Files\Java\jdk1.8.0_131\bin
,;C:\Program Files\Java\jdk1.8.0_131\lib
Four. Check whether the environment is well equipped
1. Enter java
2. Enter javac
3. View the java version
java -version