Home >System Tutorial >Windows Series >How to configure JDK environment variables in Win10_Introduction to the method of configuring JDK environment variables in Win10
Confusion about configuring JDK environment variables in Win10 For programmers, configuring JDK environment variables is a common operation. However, for newbies, this can be daunting. PHP editor Youzi learned that many users encountered difficulties in configuring JDK environment variables when using the Win10 system. After reading this article, you will understand the exact steps to configure JDK environment variables in Win10, thus easily solving your doubts.
Introduction to the method of configuring JDK environment variables in Win10
1. Step one: First, open the system environment variable configuration page. The specific operation is: open the start menu, find "This PC", then right-click "More" → "Properties". (As shown in the picture below:)
2. Step 2: On the pop-up page, select "Advanced System Settings". (As shown in the picture below:)
3. Step 3: On the pop-up page, select "Environment Variables (N)...". (As shown in the picture below:)
4. Step 4: In the system variable area of the pop-up page, select "New". (As shown in the picture below:)
5. Step 5: On the new page, enter the variable name "JAVA_HOME"; the variable value "the path of your jdk (please refer to Figure below, find your installation path)" and click "OK". (As shown in the picture below:)
6. Step 6: In the system variable area, select "New" and enter the variable name "CLASSPATH"; variable value: ". ;%JAVA_HOME%libdt.jar;%JAVA_HOME%libtools.jar;". Please note the "dot" and "semicolon" in front of the variable value. You can directly copy the variable value and click "OK". (As shown in the picture below:)
7. Step 7: Use the scroll wheel to find the "Path" variable in the system variables area and double-click to open it. Click New and add the following two lines of code (the two lines of code in the red selection box). (As shown in the picture below:)
8. Step 8: Use Windows icon + R to quickly open the "Run" interface, enter cmd, and press Enter to confirm. (As shown in the picture below:)
9. Step 9: Enter java –version on the command line; if the java version information can be displayed, the configuration is successful. (As shown in the picture below:)
The above is the detailed content of How to configure JDK environment variables in Win10_Introduction to the method of configuring JDK environment variables in Win10. For more information, please follow other related articles on the PHP Chinese website!