命令行启动java程序不显示控制台窗口
关键: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