1、新建->变量名”JAVA_HOME”,变量值”C:/Java/jdk1.8.0_05″(即JDK的安装路径)
2、编辑->变量名”Path”,在原变量值的最后面加上“;%JAVA_HOME%/bin;%JAVA_HOME%/jre/bin”
3、新建->变量名“CLASSPATH”,变量值“.;%JAVA_HOME%/lib;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar”
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/18062.html