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.

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



×
×
  • Create New...