电脑右键--高级--属性--更改环境变量
1.JAVA_HOME C:\Program Files\Java\jdk1.7.0_04
2. Path %JAVA_HOME%\bin
3.CLASSPATH .;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar;
4.Path %JAVA_HOME%/bin;%JAVA_HOME%/jre/bin
电脑右键--高级--属性--更改环境变量
1.JAVA_HOME C:\Program Files\Java\jdk1.7.0_04
2. Path %JAVA_HOME%\bin
3.CLASSPATH .;%JAVA_HOME%/lib/dt.jar;%JAVA_HOME%/lib/tools.jar;
4.Path %JAVA_HOME%/bin;%JAVA_HOME%/jre/bin
转载于:https://www.cnblogs.com/but009/p/5744883.html