且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

命令行启动java程序不显示控制台窗口

更新时间:2022-09-16 08:50:58


关键: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,如需转载请自行联系原作者