problem with starting the SFS

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

orangelo
Posts: 4
Joined: 21 Jul 2005, 10:49

problem with starting the SFS

Postby orangelo » 21 Jul 2005, 10:54

hi,

I've installed the SFS pro version on the linux server also with JRE 1.4.2
(actually I copy the whole directory of SFS pro from windows)
when I type ./start.sh it said "permission denied"
I'm not very familiar on linux stuff so plz help me out @.@
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 21 Jul 2005, 14:41

I think you don't have permission to execute the java runtime environment.

Try typing "java" in the linux shell and see if it gives the same problem... If so, you should contact the server admin and ask for permissions.

:)
Lapo
--
gotoAndPlay()
...addicted to flash games
orangelo
Posts: 4
Joined: 21 Jul 2005, 10:49

Postby orangelo » 25 Jul 2005, 04:47

hi Lapo,

I've installed the j2re but not jre last time @@"
now I've installled the jre1.5.0.04 and also the SFS PRO version 1.2.4
but still can't start up the SFS
I went to the SFS/Server directory and typr ./start.sh
the error said:
./start.sh: line 1: java: command not found
am I have to set the path (like windows does) to run the java in any directory?

I've tested out the JRE in java website, it said I have been install the JRE sucessfully..

also, is that needed to install the FLASH API that mention in the document in linux?
it seems that cannot executed those files without installing FLASH.

Thanks again.
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 25 Jul 2005, 06:29

Just try a little test, type:

Code: Select all

java


in your shell... does that work? Or does it give an error?
Lapo

--

gotoAndPlay()

...addicted to flash games
orangelo
Posts: 4
Joined: 21 Jul 2005, 10:49

Postby orangelo » 25 Jul 2005, 06:59

it shows:
bash: java: command not found
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 25 Jul 2005, 07:14

I believe that the problem is related with the Linux shell.
Under Windows, after you have installed the jre, you can type java in your command line window and it will always work. Under Linux this doesn't work because the java command is not added in the global system path variable.

The problem can be easily solved by making a symbolic link to the "java" command in the Server/ folder of your SmartFoxServer installation directory

A symbolic link is just like a shortcut in Windows. To create it just type this one-line command in your linux shell:

Code: Select all

ln -s /path/to/your/java/executable /path/to/SmartFox/Server/java


For example on my Linux Mandriva 10.2 I used this:

Code: Select all

ln -s /usr/java/jre1.5.0._03/bin/java /home/Lapo/SFSPRO/Server/java


Finally edit the start.sh script in the SFS folder and change the initial "java" command to "./java"

Save and launch

Let me know if this solves your problem.

:)
Last edited by Lapo on 25 Jul 2005, 07:34, edited 1 time in total.
Lapo

--

gotoAndPlay()

...addicted to flash games
orangelo
Posts: 4
Joined: 21 Jul 2005, 10:49

Postby orangelo » 25 Jul 2005, 07:22

It really works! 8)

Thanks for your help Lapo :wink:

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 39 guests