海鸥航迹

学习之笔记,好文之收集。

导航

命令行启动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

posted on 2010-09-12 00:05  海天一鸥  阅读(4211)  评论(0编辑  收藏  举报