启动web项目里边的程序
在项目的src下创建xxx.bat和xxx.sh
xxx.bat
set PUSH_HOME=D:\apache-tomcat-6.0.30\webapps\xxx\WEB-INF
cd %PUSH_HOME%\bin\
cls
java -Xms128M -Xmx512M -classpath %PUSH_HOME%\lib\commons-lang-2.4.jar;%PUSH_HOME%\lib\mina-core-2.0.0-M6.jar;%PUSH_HOME%\lib\mina-statemachine-2.0.0-M6.jar;%PUSH_HOME%\lib\weld-osgi-bundle-1.0.1-SP3.jar;. xxx.xxx.xxx.xxx.ServerMain
pause
xxx.sh