Jump to content
  • 0

[Help]L2jArchid 1292 on Linux


Question

Posted

Hello,

This pack run normally on my home PC with use win xp x32, but when im tranfer server on machine with Linux x64 its wont run and logs show this:

Could not found the main class: com.l2jarchid.gameserver.L2GameServer. Program will exit.

 

Someone can help me with fix it and run server there?

4 answers to this question

Recommended Posts

  • 0
Posted

#!/bin/bash

 

# exit codes of GameServer:

#  0 normal shutdown

#  2 reboot attempt

 

while :; do

[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"

[ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"

java -Dfile.encoding=UTF-8 -Xmx512m -cp ./libs/*:l2jarchid-game-1.1.0.jar com.l2jarchid.gameserver.L2GameServer > log/stdout.log 2>&1

[ $? -ne 2 ] && break

# /etc/init.d/mysql restart

sleep 10

done

  • 0
Posted

same problem here... trying to launch server in vps (os linux)

 

GamServer_loop.sh

#!/bin/bash

 

# exit codes of GameServer:

#  0 normal shutdown

#  2 reboot attempt

 

while :; do

[ -f log/java0.log.0 ] && mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"

[ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"

java -Xms512m -Xmx512m -cp bsh-engine.jar:bsh-2.0b5.jar:geoserver.jar:javolution.jar:c3p0-0.9.1.2.jar:mysql-connector-java-5.1.6-bin.jar:jython.jar:jython-engine.jar:java-engine.jar:la2base.jar net.sf.l2j.gameserver.GameServer > logs/stdout.log 2>&1

[ $? -ne 2 ] && break

#      /etc/init.d/mysql restart

sleep 10

done

 

And getting this error after trying to execute shell script :

 

stdout.log

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(URLClassLoader.java:202)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Could not find the main class: net.sf.l2j.gameserver.GameServer.  Program will exit.

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