Jump to content
  • 0

startloginserver


~Rasmus~
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock