📄 run.bat
字号:
@echo offrem ---------------------------------------------------------------------------rem Run script for the OpenJMS examplesremrem Required Environment Variablesremrem JAVA_HOME Points to the Java Development Kit installation.remrem Optional Environment Variablesrem rem OPENJMS_HOME Points to the OpenJMS installation directory.remrem $Id: run.bat,v 1.2 2005/06/13 14:45:09 tanderson Exp $rem ---------------------------------------------------------------------------if "%OS%" == "Windows_NT" setlocalif not "%JAVA_HOME%" == "" goto gotJavaHomeecho The JAVA_HOME environment variable is not set.echo This is required to run the examples.exit /B 1:gotJavaHomeif exist "%JAVA_HOME%\bin\java.exe" goto okJavaHomeecho The JAVA_HOME environment variable is not set correctly.echo This is required to run the examples.exit /B 1:okJavaHomeset _RUNJAVA="%JAVA_HOME%\bin\java.exe"rem Guess OPENJMS_HOME if it is not setif not "%OPENJMS_HOME%" == "" goto gotOpenJMSHomeset OPENJMS_HOME=.if exist "%OPENJMS_HOME%\lib\@OPENJMS@" goto okOpenJMSHomeset OPENJMS_HOME=..\..if exist "%OPENJMS_HOME%\lib\@OPENJMS@" goto okOpenJMSHomeecho The OPENJMS_HOME variable is not set.echo This is required to run the examples.exit /B 1:gotOpenJMSHomeif exist "%OPENJMS_HOME%\lib\@OPENJMS@" goto okOpenJMSHomeecho The OPENJMS_HOME variable is not set correctly.echo This is required to run the examples.exit /B 1:okOpenJMSHomeset CLASSPATH=.\;%OPENJMS_HOME%\lib\@OPENJMS@set POLICY_FILE=%OPENJMS_HOME%\config\openjms.policyif ""%1"" == """" goto usagegoto execCmd:usageecho usage: run.bat (classname)exit /B 1:execCmdrem Execute the commandecho Using OPENJMS_HOME: %OPENJMS_HOME%echo Using JAVA_HOME: %JAVA_HOME%echo Using CLASSPATH: %CLASSPATH%set MAINCLASS=%1%shiftrem Get remaining unshifted command line arguments and save them set CMD_LINE_ARGS=:setArgsif ""%1""=="""" goto doneSetArgsset CMD_LINE_ARGS=%CMD_LINE_ARGS% %1shiftgoto setArgs:doneSetArgsrem Execute Java with the applicable properties%_RUNJAVA% -classpath "%CLASSPATH%" -Djava.security.manager -Djava.security.policy="%POLICY_FILE%" %MAINCLASS% %CMD_LINE_ARGS%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -