系统变量→新建 JAVA_HOME变量值填写jdk的安装目录系统变量→寻找 Path 变量→编辑在变量值最后输入%JAVA_HOME%in;%JAVA_HOME%jrein;(注意原来Path的变量值末尾有没有;号,如果没有,先输入;号再输入上面的代码)JDK安装与环境变量配置系统变量→新建 CLASSPATH 变量变量值填写.;%JAVA_HOME%lib;%JAVA_HOME%lib ools.jar系统变量配置完毕