JAVA_HOME
即:java的安装路径
C:\Sun\AppServer\jdk
Path
即:在原有的path中增加以下
%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
set patch
CLASSPATH
.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar
试验:
set JAVA_HOME=C:\Sun\AppServer\jdk
set Path=%Path%;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin
set Path=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%Path%
阅读(3497) | 评论(0) | 转发(0) |