makescratch
from the shell. This will create a
directory /scratch/your_username
which has a lot
of temporary storage.
/scratch/your_username
directory.
gunzip
to uncompress the file.
/usr/local/gnu/bin/tar xf
on the file to unpack it.
csh
this is done as follows:
setenv JAVA_HOME /l/j2sdk1.4.0 setenv CATALINA_HOME /scratch/your_username/jakarta-tomcat-4.1.12-LE-jdk14 setenv CLASSPATH .:/l/jsdk/servlet.jar:
/scratch/your_username/jakarta-tomcat-4.1.12-LE-jdk14/bin/startup.sh
to start the server
http://localhost:8080
. If you get the Tomcat home page, you have successfully installed the server.
/scratch/your_username/jakarta-tomcat-4.1.12-LE-jdk14/webapps/examples
with a link which points to "servlet/Sol"
. When you click
on this link using a browser, the server will try to find a Java class
Sol
in the directory:
/scratch/your_username/jakarta-tomcat-4.1.12-LE-jdk14/webapps/examples/WEB-INF/classes
and execute the method doPost
or doGet
.
/scratch/your_username/jakarta-tomcat-4.1.12-LE-jdk14/bin/shutdown.sh
to shutdown the server. Please do not leave the server running for extended periods of time when you are not monitoring it.