messenger.bat 597 Bytes
Newer Older
Bill Lynch's avatar
Bill Lynch committed
1 2 3 4 5 6 7 8
@echo off

REM #
REM # $RCSfile$
REM # $Revision$
REM # $Date$
REM #

Bill Lynch's avatar
Bill Lynch committed
9 10 11 12 13 14 15 16 17 18 19
if "%JAVA_HOME%" == "" goto javaerror
if not exist "%JAVA_HOME%\bin\java.exe" goto javaerror
goto run

:javaerror
echo.
echo Error: JAVA_HOME environment variable not set, Jive Messenger not started.
echo.
goto end

:run
20
if "%1" == "-debug" goto debug
Matt Tucker's avatar
Matt Tucker committed
21
start "Jive Messenger" "%JAVA_HOME%\bin\java" -server -jar ..\lib\startup.jar
Bill Lynch's avatar
Bill Lynch committed
22 23
goto end

24 25 26 27 28 29
:debug
start "Jive Messenger" "%JAVA_HOME%\bin\java" -Xdebug -Xint -server -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -jar ..\lib\startup.jar
goto end
:end