Jump to content
  • 0

startloginserver


~Rasmus~

Question

@echo off

title Login Server Console

:start

echo Starting l2universe Login Server.

echo.

 

:: EXAMPLE PATH

:: set JAVA_PATH="C:\Program Files\Java\jdk1.7.0_02\bin"

set JAVA_PATH="C:\Program Files\Java\jdk1.7.0_02\lib"

 

if NOT EXIST "%JAVA_HOME%"\lib\tools.jar GOTO check_path

goto je

 

:check_path

if NOT EXIST %JAVA_PATH%\lib\tools.jar GOTO jne

SET JAVA_HOME="%JAVA_PATH%"

goto je

 

:jne

ECHO.

echo    JAVA JDK not exists.

echo    Set path to JAVA JDK into JAVA_PATH in this script file or

echo    set JAVA_HOME variable into system variables.

goto end

 

:je

java -Xms512m -Xmx128m  -cp ./../libs/*;l2universelogin.jar l2.universe.loginserver.L2LoginServer

if ERRORLEVEL 2 goto restart

if ERRORLEVEL 1 goto error

goto end

:restart

echo.

echo Admin Restart ...

echo.

goto start

:error

echo.

echo Server terminated abnormaly

echo.

:end

echo.

echo server terminated

echo.

pause

 

 

ti vazo?

 

mou bgazei java jdk not exists

set path to java jdk into java_path is this script file or

set_javahome variable into system variables

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...