1. Download 1.8jdk
2. Right-click computer properties ①Advanced
system settings
②Environment variables
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
4.classpath填入
%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%MAVEN_HOME%\bin
5. Path add two
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
6. Open the cmd command and
directly enter
java -version
and then the version information is successful