Slab Posted June 30, 2010 Posted June 30, 2010 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?
0 mogo Posted June 30, 2010 Posted June 30, 2010 Post your startserver.sh (or whatever its called) here
0 Slab Posted June 30, 2010 Author Posted June 30, 2010 #!/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 mrcx Posted June 30, 2010 Posted June 30, 2010 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.
0 Slab Posted July 1, 2010 Author Posted July 1, 2010 And no1 cant help with this is some threads. And no1 know the problem?
Question
Slab
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now