#!/bin/sh
# 加载需要的包
CLASSPATH=.:../lib/antlr-2.7.6.jar:../lib/aopalliance-1.0.jar:../lib/aspectjrt-
1.6.1.jar:../lib/aspectjweaver-1.6.1.jar:../lib/c3p0-0.9.1.2.jar:../lib/c3p0-oracle-thin-extras-
0.9.1.2.jar:../lib/cglib-nodep-2.1_3.jar:../lib/classes12.jar:../lib/commons-
collections.jar:../lib/commons-dbcp.jar:../lib/commons-io-1.3.1.jar:../lib/commons-lang-
2.4.jar:../lib/commons-logging.jar:../lib/commons-pool.jar:../lib/dom4j-
1.6.1.jar:../lib/hibernate-jpa-2.0-api-
1.0.0.Final.jar:../lib/hibernate3.6.1.jar:../lib/javaee.jar:../lib/javassist-
3.12.0.GA.jar:../lib/log4j-1.2.16.jar:../lib/org.springframework.aop-
3.0.5.RELEASE.jar:../lib/org.springframework.asm-
3.0.5.RELEASE.jar:../lib/org.springframework.aspects-
3.0.5.RELEASE.jar:../lib/org.springframework.beans-
3.0.5.RELEASE.jar:../lib/org.springframework.context-
3.0.5.RELEASE.jar:../lib/org.springframework.context.support-
3.0.5.RELEASE.jar:../lib/org.springframework.core-
3.0.5.RELEASE.jar:../lib/org.springframework.expression-
3.0.5.RELEASE.jar:../lib/org.springframework.instrument-
3.0.5.RELEASE.jar:../lib/org.springframework.instrument.tomcat-
3.0.5.RELEASE.jar:../lib/org.springframework.jdbc-
3.0.5.RELEASE.jar:../lib/org.springframework.orm-
3.0.5.RELEASE.jar:../lib/org.springframework.transaction-
3.0.5.RELEASE.jar:../lib/org.springframework.web-3.0.5.RELEASE.jar:../lib/slf4j-api-
1.6.1.jar:../lib/slf4j-log4j12-1.6.1.jar:../bin
export CLASSPATH
# 修改成服务器下面的 jdk路径 使用env 查看
PATH=/usr/java/jdk1.6.0_22/bin:$PATH
export PATH
# Execute the JVM
echo $CLASSPATH
# 加载需要的包
CLASSPATH=.:../lib/antlr-2.7.6.jar:../lib/aopalliance-1.0.jar:../lib/aspectjrt-
1.6.1.jar:../lib/aspectjweaver-1.6.1.jar:../lib/c3p0-0.9.1.2.jar:../lib/c3p0-oracle-thin-extras-
0.9.1.2.jar:../lib/cglib-nodep-2.1_3.jar:../lib/classes12.jar:../lib/commons-
collections.jar:../lib/commons-dbcp.jar:../lib/commons-io-1.3.1.jar:../lib/commons-lang-
2.4.jar:../lib/commons-logging.jar:../lib/commons-pool.jar:../lib/dom4j-
1.6.1.jar:../lib/hibernate-jpa-2.0-api-
1.0.0.Final.jar:../lib/hibernate3.6.1.jar:../lib/javaee.jar:../lib/javassist-
3.12.0.GA.jar:../lib/log4j-1.2.16.jar:../lib/org.springframework.aop-
3.0.5.RELEASE.jar:../lib/org.springframework.asm-
3.0.5.RELEASE.jar:../lib/org.springframework.aspects-
3.0.5.RELEASE.jar:../lib/org.springframework.beans-
3.0.5.RELEASE.jar:../lib/org.springframework.context-
3.0.5.RELEASE.jar:../lib/org.springframework.context.support-
3.0.5.RELEASE.jar:../lib/org.springframework.core-
3.0.5.RELEASE.jar:../lib/org.springframework.expression-
3.0.5.RELEASE.jar:../lib/org.springframework.instrument-
3.0.5.RELEASE.jar:../lib/org.springframework.instrument.tomcat-
3.0.5.RELEASE.jar:../lib/org.springframework.jdbc-
3.0.5.RELEASE.jar:../lib/org.springframework.orm-
3.0.5.RELEASE.jar:../lib/org.springframework.transaction-
3.0.5.RELEASE.jar:../lib/org.springframework.web-3.0.5.RELEASE.jar:../lib/slf4j-api-
1.6.1.jar:../lib/slf4j-log4j12-1.6.1.jar:../bin
export CLASSPATH
# 修改成服务器下面的 jdk路径 使用env 查看
PATH=/usr/java/jdk1.6.0_22/bin:$PATH
export PATH
# Execute the JVM
echo $CLASSPATH
echo $PATH
# MO 为 执行文件名称。如果不在当前目录下面。改好全路径。cn.com.dddd.MO
java -Dfile.encoding=UTF-8 -Xms32m -Xmx200m MO -classpath ${CLASSPATH}