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".
2. In the new window, go to the "Advanced" tab at the top and click "Environment Variables" in the lower right corner.
3. Then click the "New" button under "System Variables".
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.
5. Then select "Path" under "System Variables" and click "Edit".
6. After entering the new window, click the "New" button on the right, fill in "%JAVA_HOME%bin", and click OK.
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.
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!