1、添加JAVA_HOME,变量值为JAVA的安装目录
C:/Program Files/Java/jdk1.8.0_181
2、添加CLASSPATH,变量值为
.;%JAVA_HOME%/lib;
3、添加PATH变量,一定要加在其他PATH变量前面
C:/Program Files/Java/jdk1.8.0_181/jre/bin C:/Program Files/Java/jdk1.8.0_181/bin
4、配置测试
5、参考文档
https://www.cnblogs.com/ring1992/p/8551976.html https://www.cnblogs.com/weedboy/p/6920378.html
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/183445.html