- Right-click the Computer -> Properties
- Advanced System Settings
- Advanced -> Environment Variables
- Configure the environment variables (recommended: system variables)
- New JAVA_HOME
- Create / Modify CLASSPATH
- .;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
- Modify the PATH variable
-
%JAVA_HOME%\bin %JAVA_HOME%\jre\bin
-
- cmd run java, javac detect whether the installation is successful
-
The Java environment variable configuration (windows 10)
Guess you like
Origin www.cnblogs.com/kihyou/p/11773687.html
Ranking