pokusam sa rozbehnut l2j (lineage 2 server program) pod linuxom (debian), program vyzaduje k spusteniu JRE, ktory som uspesne nainstaloval verzia 1.5.13, otestovane prikazom
java -version
Pri pokuse spustit akykolvek sh skript my program vyhodi tento error
Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/l2j/gsregistering/GameServerRegister
Samotny skript bude urcite dobry skor to vidim na chybu v CLASSPATH, kedze nemoze najst triedu.
Tu je vypis samotneho kodu:
#!/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-
[ -f log/stdout.log ] && mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S
java -Xms512m -Xmx512m -cp l2jserver.jar net.sf.l2j.gameserver.GameServe
[ $? -ne 2 ] && break
# /etc/init.d/mysql restart
sleep 10
done
konfiguracia javy v .bashrc
JAVA_HOME=/root/jre1.5.0_14
CLASSPATH=/root
PATH=$PATH:$JAVA_HOME/bin
Poradte prosim...premna uz 4 dnom neriesitelny problem.