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

WBOY
Release: 2023-12-22 21:51:35
forward
728 people have browsed it

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!

source:somode.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template