You will usually be asked to provide a script file that records you compiling and running your files. Here are the steps to take:
.class
) versions of your
files, using the rm
command. If you want to get rid
of all of the class files, you can use the command
You'll have to be more judicious if you were provided some class files that you need to keep.rm *.class
Everything that goes to your terminal will now also be recorded in the a file named typescript.script
ls -l
javac *.java
exit
.
a2ps --file-align=virtual filenames ...
Some useful options for a2ps
include:
--file-align=virtual
tells a2ps to not start each new file on a new sheet.
-1
(that's a one) will make it print 1-up
--line-numbers=1
number the lines in each file
-o /dev/null
will not actually print, but you'll be
able to see how the page breaks happen.
/cslab/class/csci235/bin/handin labname filenames ...
The labname (or project name) will be specified in the
assignment. Include all of the files (usually Java source and a
typescript) on a single command.
Be sure that you see the report of successful submission. You can submit
more than once; the last submission can always be found.
Last modified: Mon Sep 12 10:51:45 CDT 2011