bat文件写法

 

@echo off
@title=预警阀值管理模块

set CLASSPATH=threshold.jar//主包
set CLASSPATH=%CLASSPATH%;lib/antlr-2.7.6.jar
set CLASSPATH=%CLASSPATH%;lib/aspectjrt.jar
set CLASSPATH=%CLASSPATH%;lib/aspectjweaver.jar
set CLASSPATH=%CLASSPATH%;lib/c3p0-0.9.1.2.jar
set CLASSPATH=%CLASSPATH%;lib/cglib-nodep-2.1_3.jar
set CLASSPATH=%CLASSPATH%;lib/common-annotations.jar
set CLASSPATH=%CLASSPATH%;lib/commons-collections-3.1.jar
set CLASSPATH=%CLASSPATH%;lib/commons-dbcp.jar
set CLASSPATH=%CLASSPATH%;lib/commons-logging.jar
set CLASSPATH=%CLASSPATH%;lib/commons-pool.jar
set CLASSPATH=%CLASSPATH%;lib/dom4j-1.6.1.jar
set CLASSPATH=%CLASSPATH%;lib/ejb3-persistence.jar
set CLASSPATH=%CLASSPATH%;lib/hibernate3.jar
set CLASSPATH=%CLASSPATH%;lib/hibernate-annotations.jar
set CLASSPATH=%CLASSPATH%;lib/hibernate-commons-annotations.jar
set CLASSPATH=%CLASSPATH%;lib/javassist-3.9.0.GA.jar
set CLASSPATH=%CLASSPATH%;lib/jta-1.1.jar
set CLASSPATH=%CLASSPATH%;lib/junit-3.8.1.jar
set CLASSPATH=%CLASSPATH%;lib/log4j-1.2.14.jar
set CLASSPATH=%CLASSPATH%;lib/mina-core-2.0.4.jar
set CLASSPATH=%CLASSPATH%;lib/ojdbc14.jar
set CLASSPATH=%CLASSPATH%;lib/quartz-all-1.6.0.jar
set CLASSPATH=%CLASSPATH%;lib/slf4j-api-1.5.8.jar
set CLASSPATH=%CLASSPATH%;lib/slf4j-log4j12-1.5.8.jar
set CLASSPATH=%CLASSPATH%;lib/spring.jar


echo java -cp "%CLASSPATH%" com.szair.threshold.monitor.StartServer//启动类
java -cp "%CLASSPATH%" com.szair.threshold.monitor.StartServer

pause

你可能感兴趣的:(bat文件写法)