CS203
Spring 2013
Jan 25
Note that these instructions are less detailed than they were in 101/102. That’s meant as a compliment
, but don’t hesitate to ask me or one of the coaches any questions!
cs203 course directory under your home directory
~cs203/labs/ to your course directory
How to compile and run a Java program with tester library from the command line.
1. Open the terminal window.
2. cd into your course directory
3. Copy the Shapes project to your course directory:
cp -r ~cs203/labs/Shapes ./
4. cd into your newly copied Shapes directory:
cd Shapes
5. To compile your program type into command line:
javac -cp .:/home/cs203/jars/tester.jar *.java
6. To run your program type into command line:
java -cp .:/home/cs203/jars/tester.jar tester.Main
If all goes well, you should see as the last few lines of output:
Ran 18 tests.
All tests passed.
Issued 5 warnings of inexact comparison.
— END OF TEST RESULTS —
submit203 lab1 BlobWorldFun
submit203 lab1 Shapes