编写.bat文件举例
%CD%/jre1.6u5/bin/java -classpath "%CD%/lib/autoutils-2.1.0.001 Beta2.jar;%CD%/lib/dom4j-1.6.1.jar;%CD%/lib/jaxen-1.1-beta-4.jar;%CD%/lib/jaxrpc.jar;%CD%/lib/log4j-1.2.15.jar;%CD%/lib/axis.jar;%CD%/lib/commons-discovery-0.2.jar;%CD%/lib/org.apache.commons.logging_1.0.4.v200706111724.jar;%CD%/lib/org.eclipse.core.commands_3.3.0.I20070605-0010.jar;%CD%/lib/org.eclipse.core.runtime_3.3.100.v20070530.jar;%CD%/lib/org.eclipse.equinox.common_3.3.0.v20070426.jar;%CD%/lib/org.eclipse.equinox.registry_3.3.1.R33x_v20070802.jar;%CD%/lib/org.eclipse.jface.text_3.3.2.r332_20071017-0800.jar;%CD%/lib/org.eclipse.jface_3.3.2.M20080207-0800.jar;%CD%/lib/org.eclipse.osgi_3.3.2.R33x_v20080105.jar;%CD%/lib/org.eclipse.swt.win32.win32.x86_3.3.3.v3349.jar;%CD%/lib/org.eclipse.text_3.3.0.v20070606-0010.jar;%CD%/lib/wsdl4j-1.5.1.jar;%CD%/lib/org.eclipse.ui.forms_3.3.0.v20070511.jar;%CD%/lib/org.eclipse.ui.workbench_3.3.2.M20080207-0800.jar;%CD%/lib/saaj.jar;%CD%/lib/activation.jar;%CD%/lib/mail.jar;%CD%/test.jar" com.newautovideo.controll.Receive
test.jar为应用程序打成的jar包。.bat文件中相关目录文件结构参见相册“如何通过bat文件启动一个带main函数的程序”