Home >System Tutorial >Windows Series >How to set the absolute path configuration of JDK environment variables in Win10

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

WBOY
WBOYforward
2024-01-04 21:29:481105browse

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!

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