To run the server, simply invoke the java interpreter with the name of the server class
uk.co.demon.cascade.http.HTTPServer
, and the location of the configuration
file.
java uk.co.demon.cascade.http.HTTPServer www.conf
Note that you will need to ensure that zip file containing the server classes in included in the CLASSPATH. This can be done either setting the the CLASSPATH environment variable, or as a command line parameter to the Java interpreter.
#!/bin/sh CLASSPATH=/home/davidw/java/classes:/home/davidw/java/HTTPServer:$CLASSPATH export CLASSPATH exec java $* uk.co.demon.cascade.http.HTTPServer www.conf
java -classpath h:\java\classes;d:\java\lib\classes.zip uk.co.demon.cascade.http.HTTPServer www.conf
The following properties can be set on the command line via the -D
option:
-Ddebug=1
This parameter causes debug information to be written to standard output.
-Dverbose=1
This parameter causes extra information about what the server is doing to be written to standard output. It is useful in order to see what happens when processing requests, and also when testing new configuration files.