随笔-35  评论-97  文章-0  trackbacks-0

1、在window下的一个例子:

jdk1.5:

@echo off
set path
=%path%;.
set JAVA_HOME
=E:\dev-soft\JAVA\jdk\jdk1.5
set CLASS_PATH
=%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
java 
-cp %classpath%;lib\ant.jar;lib\asm.jar;lib\asm-attrs.jar;lib\cglib-2.1.3.jar;lib\commons-beanutils-1.7.0.jar;lib\commons-collections-3.2.jar;lib\commons-dbcp-1.2.1.jar;lib\commons-digester-1.6.jar;lib\commons-lang-2.1.jar;lib\commons-logging-1.0.4.jar;lib\dom4j-1.6.1.jar;lib\jaxen.jar;lib\junit-4.1.jar;lib\log4j-1.2.13.jar;lib\mysql-connector-java-3.0.10-stable-bin.jar;lib\velocity-1.4.jar;lib\velocity-tools-1.2.jar;lib\xercesImpl-2.0.2.jar;lib\xml-apis.jar;lib\commons-pool-1.3.jar;lib\easydbo.jar;mainjar.jar com.RunableClient
@pause

 

jdk1.6

@echo off
set path
=%path%;.
set JAVA_HOME
=E:\dev-soft\JAVA\jdk\jdk1.6
set CLASS_PATH
=%JAVA_HOME%\lib;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar
java 
-cp %classpath%;lib\*;mainjar.jar com.RunableClient
@pause

 

 

posted on 2007-07-12 18:11 三告习习 阅读(151) 评论(0)  编辑  收藏