BinSort on Athena

Luis F. G. Sarmenta (lfgs@cag.lcs.mit.edu)
Sat, 20 Sep 1997 14:44:41 -0400

Hi folks,

Just a reminder, you can go to lab anytime. But for those of
you who prefer it, you can also run BinSort on Athena.
Here's how it works:

1) Make sure that java and BinSort are running (i.e., do whatever you
did to get it to work for pre-lab).

2) Create your .java file(s) (using emacs, or by copying/ftping it
from lab). Make sure the filename is <yournodename>.java, where <yournodename>
is the name of your class as defined inside the file. (Capitalization
matters!)

3) You'll have to change your file a bit to make it run on Athena.
Instead of:

package BinSort;

say,

import BinSort.*;

4) To compile your code, SAVE it first, then type at the command prompt:

javac <yournodename>.java

(Note it's javac, not java.)
^

This should create a <yournodename>.class file in the same
subdirectory. Everytime you change your file, you'll
have to compile again before running it.

5) Then, from the same subdirectory, type:

java BinSort.Main <yournodename>

to run it. Note that it's just <yournodename> NOT
BinSort.<yournodename> like before. Also note that
there's no ".java" after <yournodename>.

Verify that you have loaded the correct class
by clicking on the colored node icon, and checking that
it is indeed your own node (and not DefaultNodeBehavior).

OK, good luck and happy programming.
If you have any problems, don't hesitate to send email
to 6.096-staff@mit.edu

- Luis