1. Right-click computer------> Properties------> Advanced System settings
2. In the popup window to switch to advanced, click on the bottom there is an environment variable, enter the environment variable settings
3. Three environment variables need to be configured here: Java_home, CLASSPATH, Path;
First configure click Java_home, click New under System variables, variable name: java_home, Variable Value: The path where the JDK is installed, click OK
4. Then configure CLASSPATH, same as previous step, click New, variable name: CLASSPATH, Variable value:.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar (Note that the first point can not be omitted, the last to have an English symbol), click OK
5. Finally configure path, locate the path in the system variable and double-click it, add:%java_home%\bin;%java_home%\jre\bin at the end of the value of the variable; last click OK
6. Verify that the configuration is successful, press the Windows+r key, enter cmd
7. Enter Javac in the pop-up black box, if the configuration is successful, Javac usage will appear.
Steps for the Java environment configuration