关键:start javaw –jar xxx.jar
一个例子:
=============================================
@ECHO OFF
REM "zcx eclipse help script"
set ehome="f:\eclipse"
pushd %ehome%
if "%1" == "start" (
explorer http://localhost/help/index.jsp)
start javaw -classpath plugins\org.eclipse.help.base_3.3.101.M20080728_34x.jar org.eclipse.help.standalone.Infocenter -eclipse home . -port 80 -command start
)
if "%1" == "stop" (
start javaw -classpath plugins\org.eclipse.help.base_3.3.101.M20080728_34x.jar org.eclipse.help.standalone.Infocenter -eclipse home . -port 80 -command shutdown
)
popd
===============================================
Technorati 标签:
java dos batch
本文转自海天一鸥博客园博客,原文链接:http://www.cnblogs.com/sgsoft/archive/2010/09/12/1824212.html,如需转载请自行联系原作者