1.变量名:JAVA_HOME 变量值:C:Program FilesJavajdk1.7.0 //这里是你JDK的安装路径,可以更换 2.变量名:CLASSPATH 变量值:.;%JAVA_HOME%libdt.jar;%JAVA_HOME%lib ools.jar; //记得前面有个"." 3.变量名:Path 变量值:%JAVA_HOME%in;%JAVA_HOME%jrein;