Jdk environment variable configuration process

1. Download 1.8jdk
2. Right-click computer properties ①Advanced
system settings
②Environment variables
Insert picture description here

3. Fill in JAVA_HOME (enter the parent file of the bin file in the jdk folder, that is, the file when the bin file is just visible, and then copy the path)
E:\jdk1.8\jdk1.8.0_77
Insert picture description here

4.classpath填入
%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%MAVEN_HOME%\bin
Insert picture description here

5. Path add two
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
Insert picture description here

6. Open the cmd command and
directly enter
java -version
and then the version information is successful

Insert picture description here

Guess you like

Origin blog.csdn.net/BOWWOB/article/details/111410438