1. 【My Computer】->【Properties】->【Advanced】- >【Environment Variables】->【System Variables】Add the following environment variables:
2. The JAVA_HOME value is: [D:\Program Files\Java\jdk1.7.0_11] (JDK installation directory)
3. Path: append [%JAVA_HOME%\bin] (if your original path has; at the end, no need)
4. Set the classpath environment variable. The CLASSPATH value is: 【.;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\bin;】 (frontmost There is a point).
The above is the detailed content of java is not an internal or external command win10 how to solve. For more information, please follow other related articles on the PHP Chinese website!