- First check whether jdk is installed using the command java -version (already installed successfully)
- Download address link .
Environment variables (right click on this computer - advanced system settings - environment variables) To
configure jdk , you
need to configure CLASSPATH
CLASSPATH
前面有文件复制这个
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;
前面没有文件复制
;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar;
configure path
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
Finally, click OK to complete the configuration.
After completion, use the cmd command box to execute java -version to determine whether the installation is successful