Page 1 of 1

Java Error Launching Server

Posted: 17 Jan 2013, 19:00
by Devon
I'm trying to deploy the server on a VPS running 768MB RAM and CentOS, alongside of cPanel with Apache, MySQL, PHP, Exim, ect...

However, when attempting to launch, I'm receiving the following error:

Code: Select all

root@host [/home/<removed>/SmartFoxServer2X/SFS2X]# ./sfs2x.sh
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object


The same error occurs when trying to install the patch. Running which java doesn't return anything, so I don't believe it's two runtimes conflicting.

Update:
After running the SFS2X as a service one time, the standalone started working...

Re: Java Error Launching Server

Posted: 18 Jan 2013, 09:14
by Lapo
Under Linux the JVM components are compressed and after the first launch with sfs-service they get unpacked.
This is actually a little quirk produced by the installer component.
By starting the server the first time with sfs-service the JVM gets deployed and it can be used as standalone as well.