Home > Computer Tutorials > Troubleshooting > How to set JDK environment variables on Windows 11

How to set JDK environment variables on Windows 11

王林
Release: 2024-01-09 22:17:51
forward
1171 people have browsed it

After downloading and installing the jdk environment on the win11 computer system, you must configure the environment variables, otherwise it cannot run. So how does Win11 configure the JDK environment variables? For this reason, the editor will give you a detailed introduction to the detailed tutorial on configuring jdk environment variables in Win10. If you are interested, come and take a look with the editor.

1. Shortcut key "win i" to enter the setting interface, click "System Information" in the "System" option on the left, and find the "Advanced System Settings" option on the right side of "Related Links".

How to set JDK environment variables on Windows 11

2. In the new window, go to the "Advanced" tab at the top and click "Environment Variables" in the lower right corner.

How to set JDK environment variables on Windows 11

3. Then click the "New" button under "System Variables".

How to set JDK environment variables on Windows 11

4. In the given window, fill in the variable name as "JAVA_HOME", and the variable value is the installation path of the jdk directory.

How to set JDK environment variables on Windows 11

5. Then select "Path" under "System Variables" and click "Edit".

How to set JDK environment variables on Windows 11

6. After entering the new window, click the "New" button on the right, fill in "%JAVA_HOME%bin", and click OK.

How to set JDK environment variables on Windows 11

7. Finally, press the shortcut key "win R", enter "cmd" and press Enter to enter the command prompt window, enter "java", press Enter to execute and you will see Related information. Enter "java -version" to view the version number.

How to set JDK environment variables on Windows 11

How to set JDK environment variables on Windows 11

The above is the detailed content of How to set JDK environment variables on Windows 11. For more information, please follow other related articles on the PHP Chinese website!

source:dafanshu.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