JAVA_HOME: D:\Program Files\Java\jdk1.7.0
CLASSPATH: %JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;
Path: %JAVA_HOME%/bin;%JAVA_HOME%/jre/bin;
或者
classpath:.;D:\Program Files\Java\jdk1.7.0\lib\tools.jar;D:\Program Files\Java\jdk1.7.0\lib\dt.jar
path:D:\Program Files\Java\jdk1.7.0\bin;D:\Program Files\Java\jdk1.7.0\jre\bin;