-
In the new page, enter the variable name "Java_home", the variable value "Your JDK path (please refer to, find your installation path)", and then click "OK".
- In the System variables 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" and "semicolon", you can copy this variable value directly. Then click "OK".
- Through the roller, locate the "Path" variable in the system variable area and double-click to open it. Click New to add the following two lines of code (two lines of code in the Red selection box).
- Using the Windows icon +r, quickly open the "Run" operator interface and enter CMD to confirm the return.
- Enter java–version on the command line; If you can display version information for Java, the configuration is successful.
Configuring Java JDK Environment variables