Win10 configures JAVA environment variables
1. Add JAVA_HOME, and the variable value is the installation directory of JAVA.
C:\ Program Files\ Java\ jdk1.8.0_181
2. Add CLASSPATH, and the variable value is
.;% JAVA_HOME%\ lib
3. Add PATH variables, be sure to add them before other PATH variables
C:\ Program Files\ Java\ jdk1.8.0_181\ jre\ binC:\ Program Files\ Java\ jdk1.8.0_181\ bin
4. Configuration testing
5. Reference documentation
Https://www.cnblogs.com/ring1992/p/8551976.html https://www.cnblogs.com/weedboy/p/6920378.html