Home  >  Article  >  System Tutorial  >  How to solve the problem of failure to successfully configure JDK environment variables

How to solve the problem of failure to successfully configure JDK environment variables

WBOY
WBOYforward
2023-12-22 21:51:35726browse

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.

JDK environment variables are always configured unsuccessfully:

1. First, press the shortcut key "win r" to open the run and enter cmd.

How to solve the problem of failure to successfully configure JDK environment variables

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.

How to solve the problem of failure to successfully configure JDK environment variables

3. Then continue to enter: SET CLASSPATH=%JAVA_HOME%\lib

and press the Enter key.

How to solve the problem of failure to successfully configure JDK environment variables

4. Enter: SET Path=%JAVA_HOME%\bin and press the Enter key.

How to solve the problem of failure to successfully configure JDK environment variables

5. Finally, try "javac" to successfully obtain the information.

How to solve the problem of failure to successfully configure JDK environment variables

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!

Statement:
This article is reproduced at:somode.com. If there is any infringement, please contact admin@php.cn delete