- System Variables → New JAVA_HOME variable.
The variable value fills in the jdk installation directory - System Variables→Find Path Variable→
Edit Enter %JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;
at the end of the variable value (note if there is a ; at the end of the original Path variable value, if not, enter the ; first and then enter the above code) - System variables → New CLASSPATH variable Fill in the
variable value.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar (note the first point) The
system variable is configured - To check whether the configuration is successful, run cmd and enter java -version (there is a space between java and -version).
If the version information is displayed, the installation and configuration are successful.
jdk environment variable configuration
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=324732325&siteId=291194637
Recommended
Ranking