How to set the absolute path configuration of JDK environment variables in Win10

WBOY
Release: 2024-01-04 21:29:48
forward
1069 people have browsed it

When we configure environment variables, we have three configuration targets JAVA_HOME, CLASSPATH, and PATH. Then we must be very careful when writing the path. Even if there is one missing symbol and one wrong punctuation, the configuration will be wrong. So the editor will tell you how to write the absolute path in the configuration ~ I hope it can help you.

How to configure the absolute path of win10 for jdk environment variables

1. First, right-click "This Computer" and open "Properties"

How to set the absolute path configuration of JDK environment variables in Win10

2. Open "Environment Variables" in "Advanced System Settings" on the left

How to set the absolute path configuration of JDK environment variables in Win10

3, then click "New" under System Variables

How to set the absolute path configuration of JDK environment variables in Win10

4. The variable name is "JAVA_HOME", and the variable value is our jdk absolute path.

How to set the absolute path configuration of JDK environment variables in Win10

5. You must see the file as shown in the figure under the absolute path.

How to set the absolute path configuration of JDK environment variables in Win10

6. Then select "path" under system variables and select "Edit",

How to set the absolute path configuration of JDK environment variables in Win10

7. Open After editing the window, click "New" in the upper right corner and create the following two paths:

%JAVA_HOME%\bin

%JAVA_HOME%\jre\bin

How to set the absolute path configuration of JDK environment variables in Win10

8. After the new creation is completed, return to the previous level interface and create a new "CLASSPATH" variable.

How to set the absolute path configuration of JDK environment variables in Win10

9. The variable value is ".;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;" and save to complete the configuration. .

How to set the absolute path configuration of JDK environment variables in Win10

The above is the detailed content of How to set the absolute path configuration of JDK environment variables in Win10. 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