Jump to content

Recommended Posts

Posted

Ok i will show you how to  open your Gameserver and Loginserver on linux  (better way)

ok lets  start:

 

first install screen  :

 

apt-get install screen

 

LOGINSERVER

first  open the  terminal  and wrie this:

cd "/server/loginserver"  (you will put  your location)

ok then write this:

java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar net.sf.l2j.loginserver.L2LoginServer

 

You  will see  now your loginserver start !  so when  it  done ...  press  ctrl + a + d

 

GAMESERVER

 

now  for gameserver  type:

cd "/server/gameserver"  (you will put  your location)

and then:

java -Djava.util.logging.manager=net.sf.l2j.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar net.sf.l2j.gameserver.GameServer

 

so when  it done  ....  press  ctrl +a + d

 

I use  net.sf.l2j pack if  you use other  like com.l2jserver  etc!  you will change  the  net.sf.l2j  to  com.l2jserver :)

 

thx  for reading ! 

credits to me!

 

 

NOTE: dont start the server  via gameserver_loop.sh and  LoginServer_loop.sh  (it sux)

 

 

  • 2 weeks later...
Posted

i try to start server with this commands and i get this error

Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/l2j/gameserver
/GameServer
Caused by: java.lang.ClassNotFoundException: net.sf.l2j.gameserver.GameServer
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: net.sf.l2j.gameserver.GameServer.  Program will exit.

Posted

i try to start server with this commands and i get this error

Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/l2j/gameserver
/GameServer
Caused by: java.lang.ClassNotFoundException: net.sf.l2j.gameserver.GameServer
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: net.sf.l2j.gameserver.GameServer.  Program will exit.

It Can't Find the GS
Posted

my pack is L2jServer Rev 6395

 

you  have to use this for loginserver

 

java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar com.l2jserver.loginserver.L2LoginServer

 

and this for gameserver

 

java -Djava.util.logging.manager=com.l2jserver.util.L2LogManager -Xms1024m -Xmx1024m -cp ./../libs/*:l2jserver.jar com.l2jserver.gameserver.GameServer

 

Posted

same error ...

 

i open LoginServer_loop.sh and i found this code..

nice -n -2 java -Xmx128m -cp ./../libs/*:l2jserver.jar net.sf.l2j.loginserver.L2LoginServer > log/stdout.log 2>&1

 

maybe it's correct net.sf.l2j..woff..i hate linux..

Posted

nice and helpful for newbie..! very nice Silver!

 

thank you!

 

same error ...

 

i open LoginServer_loop.sh and i found this code..

nice -n -2 java -Xmx128m -cp ./../libs/*:l2jserver.jar net.sf.l2j.loginserver.L2LoginServer > log/stdout.log 2>&1

 

maybe it's correct net.sf.l2j..woff..i hate linux..

 

you have dedicated or Full linux  OS ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   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.

×
×
  • Create New...