Dear Rune-Sever,
I have a problem with running the BattleScape source on a VPS. When i click 'run.bat' i get this:
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: Server
Caused by: java.lang.ClassNotFoundException: Server
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: Server. Program will exit.
Press any key to continue . . .
The strange thing is, i have compiled all the files. I have also tried running the exact same copy on my home PC and it runs fine. So it clearly has something to do with the VPS, what could this be?
Easy rep available :coolface:
EDIT: My run.bat....
@echo off
@title BattleScape
java -Xmx512m Server
pause
exit
EDIT 2: My server is packaged like delta, all in the root folder. All classes thrown into one folder along with run.bat and compiler. Here is screenie: