Linux RHEL5 Installation Issues

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

Moderators: Lapo, Bax

ifernandez
Posts: 21
Joined: 16 Jul 2010, 17:02

Linux RHEL5 Installation Issues

Postby ifernandez » 06 Jul 2011, 15:18

Hello,

I'm trying to install SFS2x on a Red Hat Enterprise Linux 5 Box, but no luck so far.

After going through the installation guide in:

http://docs2x.smartfoxserver.com/GettingStarted/install-linux

I decompressed the tar file in the box, but when trying to launch the server using

./sfs2x.sh

A: -bash: java: command not found
error is returned.

only using:

Code: Select all

./sfs2x-service start


The server starts

Now, after downloading the RC3 patch i tried to install it using the install.sh provided

But again a command not found exception is thrown, i don't have java installed in the server.

When modifying the install script to use the java executable found in jre folder inside the installation folder for SFS2x the following error appears:

Code: Select all

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object


The same error is thrown when modifying the sfs2x.sh script to launch the server using the provided jre

My questions are:

Do i need to install java to patch the server? (i'm guessing no but to be sure)

Am i doing something wrong modifying the scripts to look for the java executable?, or am i missing something?

Any advice on how to patch the server?

Also RHEL only provides open jdk in the repository will the server work with that one?
susann
Posts: 17
Joined: 01 Oct 2009, 17:16

Postby susann » 06 Jul 2011, 15:27

you must have installed java 6 on your server
bjsion
Posts: 16
Joined: 02 May 2011, 12:39
Contact:

Postby bjsion » 07 Jul 2011, 05:15

I am experiencing the same problem as the OP with a clean installation of SFS2X-RC1b and patch RC3. I have tried uninstalling the JRE and then reinstalling. I also installed the JDK just in case. All resulted in the same error

Code: Select all

Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/Object


@susann do you mean that java 6 is required or another version of Java is required?

Any help is greatly appreciated.

Here are my server's relevant setup

Linux Version:

Code: Select all

Linux myserver.localdomain 2.6.35.13-92.fc14.x86_64 #1 SMP Sat May 21 17:26:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

JRE:

Code: Select all

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)

JDK:

Code: Select all

javac 1.6.0_26


cheers,
Ben
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 07 Jul 2011, 10:58

Paolo Bax
The SmartFoxServer Team
bjsion
Posts: 16
Joined: 02 May 2011, 12:39
Contact:

Postby bjsion » 07 Jul 2011, 11:30

Hi Paolo,

Thanks, that did the trick. Is the script file going to be made more robust in the future?

Cheers,
Ben
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 07 Jul 2011, 11:41

Hi,
we apologize the script does not use the local JRE. We'll make sure to improve this starting from the very next release.
However if you point to that jre you shouldn't have any issues. It's a complete Java 6 distribution.

The easiest way to solve this is the following:
- Create a symbolic link to the java binary, side by side to the install.sh. Supposing you are in the patch folder it will be:

Code: Select all

ln -s ../jre/bin/java java


- Edit the install.sh so that it looks like this:

Code: Select all

./java -jar patcher.jar "SFS2X RC3 Patch Installer" $1


- Run the installer script: ./install.sh

This should do the trick
Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 71 guests