In order to compile classes on ocelot, follow these steps.
CLASSPATH for Java.
classes directory
of your web application is in the CLASSPATH.
javac to compile.
source ~/.cshrc
classes to the CLASSPATH
Open the .cshrc file on ocelot and look at the CLASSPATH statements. There will be several of them. Check to see if there is a CLASSPATH statement for the classes directory of your web application. It should look something like
setenv CLASSPATH
{$CLASSPATH}:{$HOME}/cgs4825/webapps/name-of-web-app/WEB-INF/classes
Add this after the last CLASSPATH statement if there is not one already.
javac to Compile
The command to compile files on ocelot is javac. Change to the
directory that has the .java file and issue the command
javac someFile.java
This will create the .class file in the same directory. Change
the permission of the .class file to 604.