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.
1. First, right-click "This Computer" and open "Properties"
2. Open "Environment Variables" in "Advanced System Settings" on the left
3, then click "New" under System Variables
4. The variable name is "JAVA_HOME", and the variable value is our jdk absolute path.
5. You must see the file as shown in the figure under the absolute path.
6. Then select "path" under system variables and select "Edit",
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
8. After the new creation is completed, return to the previous level interface and create a new "CLASSPATH" variable.
9. The variable value is ".;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;" and save to complete the configuration. .
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!