How to configure Jdk environment variables in Win10 system?

  

For every friend who is doing Java development, Jdk must be installed. Jdk is installed. In fact, it is not finished. You need to configure Jdk environment variables. The system is constantly updated. Introduce how to configure Jdk under Win10 and detect whether the configuration is successful.

1, first open the page of the system environment variable configuration. The specific operation is: open the start menu, find “ this computer & rdquo;, then right click "More" & rdquo; → & ldquo; attributes & rdquo;.


2. On the pop-up page, select “Advanced System Settings”.

3. On the pop-up page, select “Environment Variables (N)…”.

4. In the pop-up page, in the system variable area, select “New”.

5. On the new page, enter the variable name “JAVA_HOME”;variable value“the path of your jdk (please refer to the figure below, find your installation path)”, then click &ldquo ;OK”.

6. In the system variable area, select “New”, enter the variable name < CLASSPATH"; variable value: <;;;%JAVA_HOME%\\lib\\dt.jar;%JAVA_HOME %\\lib\\tools.jar;”. Note that in the variable value, the preceding “point<quo; and ”semicolon”, can directly copy the value of this variable. Then click “OK”.

7, through the roller, find the "Path" variable in the system variable area, and double-click to open. Click New to add the following two lines of code (two lines of code in the red selection box).

8. Use the Windows icon +R to quickly open the “Run” operation interface and enter cmd and press Enter to confirm.

9. Enter java –version at the command line; if the version information of java can be displayed, the configuration is successful.

Related recommendation:

How to manually add wireless configuration file to Win10 system?

How to configure high couple magnets for Win10 Mobile/pc?

How to check the detailed configuration information of the computer after the official version of win10 is installed?

Copyright © Windows knowledge All Rights Reserved