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 ?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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