JavaLauncherBAT
這個腳本執行後判斷 JAVA_HOME 是不是有效
腳本流程如下(參考Tomcat的腳本
@echo off
SET JAVA_HOME=
REM Store the startup dir
set cur_dir=%cd%
cd
REM Using user
if not
REM Setting relatived path as JAVA_HOME
SET JAVA_HOME=
:gotHome
if exist
start %cur_dir%\
goto end
:okExec
startup
:end
From:http://tw.wingwit.com/Article/program/Java/ky/201311/28468.html