Java Error Launching Server

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Posts: 41
Joined: 12 Apr 2011, 16:18

Java Error Launching Server

Postby Devon » 17 Jan 2013, 19:00

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]# ./
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.

After running the SFS2X as a service one time, the standalone started working...
User avatar
Site Admin
Posts: 21699
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Java Error Launching Server

Postby Lapo » 18 Jan 2013, 09:14

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.
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 27 guests