Error when trying to apply 2.11.1 patch

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

Moderators: Lapo, Bax

winstonwaite
Posts: 11
Joined: 17 Aug 2016, 20:01

Error when trying to apply 2.11.1 patch

Postby winstonwaite » 25 Oct 2016, 17:56

I downloaded a fresh install of SF 2.9 for unices here:

http://www.smartfoxserver.com/download/get/173

And the patch here:

http://www.smartfoxserver.com/download/get/191

I untar and unzip the files and place the patch in the SmartFox

Code: Select all

[root@server SFS2X-Patch-2.11.1]# ./install-linux.sh
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object


I then can cd to the untouched jre directory and try the following:

Code: Select all

[root@server bin]# pwd
/home/user/newSF/NEW/SmartFoxServer_2X/jre/bin
[root@server bin]# ./java -version
Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object


This is a CentOS box... but don't understand why the included jre isn't starting up. Is the download corrupted? I did not have trouble doing similar on a fresh 2.9 with a 2.10 patch a couple of months ago.
User avatar
Lapo
Site Admin
Posts: 23025
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Error when trying to apply 2.11.1 patch

Postby Lapo » 26 Oct 2016, 07:06

Hi,
the embedded Java runtime is compressed and can't be run out of the box without first running the server.
You will need to run the sfs2x-service at least once to decompress the JRE. After that you can run it.

cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
winstonwaite
Posts: 11
Joined: 17 Aug 2016, 20:01

Re: Error when trying to apply 2.11.1 patch

Postby winstonwaite » 26 Oct 2016, 16:05

Perfect... thanks!

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 59 guests