The Java environment variable configuration (windows 10)

  1. Right-click the Computer -> Properties
  2. Advanced System Settings
  3. Advanced -> Environment Variables
  4. Configure the environment variables (recommended: system variables)
    1.   New JAVA_HOME
    2. Create / Modify CLASSPATH
      • .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
    3. Modify the PATH variable
      • %JAVA_HOME%\bin %JAVA_HOME%\jre\bin
  5. cmd run java, javac detect whether the installation is successful
    •  

       

Guess you like

Origin www.cnblogs.com/kihyou/p/11773687.html