Java environment installation and configuration-a must-see for novices

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
Insert picture description here

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

Insert picture description here
Insert picture description here

3. Click New:

JAVA_HOME
C:\Program Files\Java\jdk1.8.0_131

Click OK, and the environment configuration is complete.
Insert picture description here
Insert picture description here

Three. The second method of configuring the environment

(Ps: just follow the picture prompts)

1. Find the advanced system settings, click on environment variables
Insert picture description here

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

Insert picture description here
Insert picture description here

Four. Check whether the environment is well equipped

1. Enter java
Insert picture description here
2. Enter javac
Insert picture description here
3. View the java version

java -version

Insert picture description here

Guess you like

Origin blog.csdn.net/TroyeSivanlp/article/details/111194270