1
CLASSPATH:.%JAVA_HOME%lib;%JAVA_HOME%libdt.jar;%JAVA_HOME%lib ools.jar
2
JAVA_HOME:%JAVA_HOME8%
JAVA_HOME7:安装路径
JAVA_HOME8:安装路径
3.(%JAVA_HOME%bin;%JAVA_HOME%jrein;一定要放在最前面)
Path:%JAVA_HOME%bin;%JAVA_HOME%jrein;
想切换7时,变成JAVA_HOME:%JAVA_HOME7%,其余不变。
声明:此方法用于windows7*64位