jdk environment variable configuration

  1. System Variables → New JAVA_HOME variable.
    The variable value fills in the jdk installation directory
  2. 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)
  3. 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
  4. 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.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324732325&siteId=291194637