| | |
| | | rem CDDL HEADER END |
| | | rem |
| | | rem |
| | | rem Portions Copyright 2007 Sun Microsystems, Inc. |
| | | rem Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | |
| | | setlocal |
| | | |
| | | set OPENDS_INVOKE_CLASS="org.opends.statuspanel.StatusPanelLauncher" |
| | | set SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=statuspanel" |
| | | call "%~dP0\_server-script.bat" %* |
| | | set DIR_HOME=%~dP0.. |
| | | set INSTANCE_ROOT=%DIR_HOME% |
| | | |
| | | :checkJavaBin |
| | | if "%JAVA_BIN%" == "" goto noJavaBin |
| | | goto setClassPath |
| | | |
| | | :noJavaBin |
| | | if "%JAVA_HOME%" == "" goto noJavaHome |
| | | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome |
| | | set JAVA_BIN=%JAVA_HOME%\bin\java.exe |
| | | goto setClassPath |
| | | |
| | | :noJavaHome |
| | | if not exist "%DIR_HOME%\bin\set-java-home.bat" goto noSetJavaHome |
| | | call "%DIR_HOME%\bin\set-java-home.bat" |
| | | set JAVA_BIN=%JAVA_HOME%\bin\java.exe |
| | | goto setClassPath |
| | | |
| | | :noSetJavaHome |
| | | echo Error: JAVA_HOME environment variable is not set. |
| | | echo Please set it to a valid Java 5 installation. |
| | | goto end |
| | | |
| | | :setClassPath |
| | | FOR %%x in ("%DIR_HOME%\lib\*.jar") DO call "%DIR_HOME%\bin\setcp.bat" %%x |
| | | |
| | | set PATH=%SystemRoot% |
| | | |
| | | "%DIR_HOME%\lib\winlauncher.exe" launch "%DIR_HOME%" "%JAVA_BIN%" %JAVA_ARGS% org.opends.statuspanel.StatusPanelLauncher %* |
| | | goto end |
| | | |
| | | |
| | | :end |