how to start login server on Linux with using files from Lib folder because i change my server from windows on Linux
my SrtatServer_loop.sh code is
#!/bin/bash
err=1
until [ $err == 0 ];
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"
nice -n -2 java -Xms128m -Xmx128m -cp javolution.jar:mmocore.jar:c3p0-0.9.1.2.jar:mysql-connector-java-5.0.7-bin.jar:l2archid-core-1.0.0.jar com.l2jarchid.loginserver.L2LoginServer > log/stdout.log 2>&1
err=$?
# /etc/init.d/mysql restart
sleep 10;
done
but i see on windows system write files from lib folder i check this in setlog files there i have next code
REM MMOCore
SET CLASSPATH=%CLASSPATH%;./lib/mmocore.jar
REM L2J-Archid Core
SET CLASSPATH=%CLASSPATH%;./lib/l2archid-core-1.0.0.jar
REM Jython
SET CLASSPATH=%CLASSPATH%;./lib/bsf.jar
SET CLASSPATH=%CLASSPATH%;./lib/bsh-2.0b4.jar
SET CLASSPATH=%CLASSPATH%;./lib/c30-0.91.2.jar
SET CLASSPATH=%CLASSPATH%;./lib/jython.jar
SET CLASSPATH=%CLASSPATH%;./lib/trove-2.1.0.jar
REM Commons
SET CLASSPATH=%CLASSPATH%;./lib/commons-logging-1.1.jar
REM Javolution
SET CLASSPATH=%CLASSPATH%;./lib/javolution.jar
SET CLASSPATH=%CLASSPATH%;./lib/java-engine.jar
SET CLASSPATH=%CLASSPATH%;./lib/ecj.jar
REM Mysql Connector
SET CLASSPATH=%CLASSPATH%;./lib/mysql-connector-java-5.0.7-bin.jar
REM for configuration
SET CLASSPATH=%CLASSPATH%;./config/
SET CLASSPATH=%CLASSPATH%;.
so how to run my server from same files because when i try from StartServer_loop.sh files write me next error
Caused by: java.lang.ClassNotFoundException: com.l2jarchid.loginserver.L2LoginServer
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: com.l2jarchid.loginserver.L2LoginServer. Program will exit.