After you have tested your program extensively, you can try to
run the tests required for submission.
You will do this by opening up an MS-DOS window.
It may be possible to do it in JCreator
or Netbeans, but it will be difficult
because you will not have the source code for the test program.
Before you get too far, from an MS-DOS window, run
and make sure you are seeing the correct Java Virtual Machine.
You must be running Java 5.
If you are not, update the PATH Environment variable
(see below; the process is similar to updating the
CLASSPATH environment variable).
and place it in the same folder that contains the cop3530
The test program is Assign4 which you can run
from the command line.
To set the CLASSPATH, you can go to CONTROL PANEL, then SYSTEM,
then select the Advanced tab, click Environment Variables, and
add a new User entry. The CLASSPATH should include at least
.;C:\your folder where Assign4.class is
If there is already a CLASSPATH entry,
then just update the one that is
Similarly, to update PATH
add the bin folder where the Java system resides,
which is something along the lines of
The main routine is in class Assign4. Note the
capitalization in Assign4. To run from the
command line, you will need to say
once the CLASSPATH is appropriately set.
I will do a demo of this on Tuesday, June 30 in class; but you really should
try it on your own first.