I have done a remote install on a VPS by copying the servoy files over.
Fedora Core 3
From the command line I can change directory and start the server by…
cd /usr/local/servoy
./servoy_server.sh
But I can’t get it to start up automitically by placing a file in the init.d directory with the same commands. I get…
Executing /etc/rc.d/init.d/servoy start ..
./servoy_server.sh: line 5: java: command not found
So I figure the Java classpath isn’t set. I have not idea how to set so that the init.d file will catch it. Instead I went to the servoy.sever.sh file and amended it from…
java -Djava.awt.headless=true -classpath…
to
/usr/java/j2re1.4.2_08/bin/java -Djava.awt.headless=true -classpath…
and get a different error…
Executing /etc/rc.d/init.d/servoy start ..
-classpath requires class path specification
Usage: java [-options] class [args…]
(to execute a class)
or java [-options] -jar jarfile [args…]
(to execute a jar file)where options include:
-client to select the “client” VM
-server to select the “server” VM
-hotspot is a synonym for the “client” VM [deprecated]
The default VM is client.-cp <class search path of directories and zip/jar files>
-classpath <class search path of directories and zip/jar files>
A : separated list of directories, JAR archives,
and ZIP archives to search for class files.
-D=
set a system property
-verbose[:class|gc|jni]
enable verbose output
-version print product version and exit
-version:
require the specified version to run
-showversion print product version and continue
-jre-restrict-search | -jre-no-restrict-search
include/exclude user private JREs in the version search
-? -help print this help message
-X print help on non-standard options
-ea[:…|:]
-enableassertions[:…|:]
enable assertions
-da[:…|:]
-disableassertions[:…|:]
disable assertions
-esa | -enablesystemassertions
enable system assertions
-dsa | -disablesystemassertions
disable system assertions
./servoy_server.sh: line 6: .:lib/commons-collections.jar:lib/commons-dbcp.jar:lib/commons-pool.jar:lib/activation.jar:lib/antlr.jar:lib/j2db.jar:lib/j2dbdev.jar:lib/compat141.jar:lib/jh.jar:lib/jndi.jar:lib/js.jar:lib/jta.jar:lib/mail.jar:lib/jug.jar:lib/jdbc2_0-stdext.jar:lib/naming-common.jar:lib/naming-resources.jar:lib/servlet.jar:lib/xerces.jar:lib/server-bootstrap.jar:lib/commons-fileupload-1.0.jar:lib/commons-logging.jar:lib/hibernate2.jar: No such file or directory
What is going on? The way I see it I can set the classpath in a way that the start up script will recognize it or I can figure out what typo i have in the servoy_server.sh script. Any idea?
Thanks!
-Jim[/quote]