Home > Article > System Tutorial > How to solve the problem of failure to successfully configure JDK environment variables
After the jdk environment variables are successfully set, many users encounter situations where the configuration is unsuccessful and fall short. In fact, this method requires configuration in dos. Let’s see that the jdk environment variables are always configured unsuccessfully. Solution.
1. First, press the shortcut key "win r" to open the run and enter cmd.
2. Then enter: SET JAVA_HOME=C:\Program Files\Java\jdk1.8.0_77
You need to follow your own jdk installation directory. Fill it out.
3. Then continue to enter: SET CLASSPATH=%JAVA_HOME%\lib
and press the Enter key.
4. Enter: SET Path=%JAVA_HOME%\bin and press the Enter key.
5. Finally, try "javac" to successfully obtain the information.
The above is the detailed content of How to solve the problem of failure to successfully configure JDK environment variables. For more information, please follow other related articles on the PHP Chinese website!