Click to See Complete Forum and Search --> : Scorch Server and Kaffe
kevin79
12-27-2001, 01:28 PM
I have setup a web server for Scorch 2000 (www.scorch2000.com) and am using Kaffe (www.kaffe.org) to run the Java.
I have to run ./rc.kaffe when I log on to run Kaffe, but I want to set it up to that it starts when I boot. Can someone help me do this?
Also, is I run Kaffe from a shell window, if I close the window, it terminates kaffe, even though I've tried to do what it says in the readme.
Thanks!
Dagda
12-27-2001, 04:18 PM
when you run Kaffe from a shell run it in the background "command &"
Dru Lee Parsec
12-28-2001, 01:50 PM
I would suggest using the Linux version of Sun's Java Virtual Machine rather than Kaffe. If you type this:
java -version
and then
which java
You'll see that the Kaffe version is 1.1.x (I think it was 1.1.7 on most Linux distros) That version is about 3 years old. The current production version is 1.3.1 and 1.4 is in beta ready to be released "any day now".
The "which java" command will show you the other atrocity. At least on Mandrake, Kaffe is installed into the /usr/bin directory rather than into a [some path]/Kaffe directory. This means that when you correctly install a better Java Virtual Machine (for instance in /usr/share/java perhaps ) then your OS will find Kaffe first because /usr/bin is in your path first.
So install the Linux JVM which is available free here http://java.sun.com/j2se/1.3/download-linux.html and when it's installed look into the /usr/share/jdk1.3.1/bin direcotory. Delete any file in /usr/bin that has the same name as a file in /usr/share/jdk1.3.1/bin and then you'll have a clean Java installation.
kevin79
12-28-2001, 05:47 PM
Ok, I've installed Sun's Java and the server does seem to work better. I still cannot figure out how to get it to start when my PC does.
The file I need to run is now called rs and it is in the /var/www/html/ directory. I can start it by using ./rs (but I have to be in the html directory. If I do it this way and close the shell window, it won't run the java on the server (I have tried the & command).
Does anyone else have any suggestions? I really want to get this running automatically.
Thanks.
kevin79
01-02-2002, 01:20 PM
anyone??