天天看點

指令行啟動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 

===============================================

本文轉自海天一鷗部落格園部落格,原文連結:http://www.cnblogs.com/sgsoft/archive/2010/09/12/1824212.html,如需轉載請自行聯系原作者

繼續閱讀