Index of Laboratory Exercises For Computer Science 152


Environmental Setup

Lab 1 explained how to modify your .bashrc file to define commands jcompile and jrun. After this work is done, you can compile and run Java programs as follows:

Getting Started with a Lab

Each lab in Experiments in Java requires several files. In the previous lab, you obtained these files by displaying them in your browser, copying them into the editor, and saving them in your account. A newly-developed tool ~walker/152/lab-setup will handle these tasks for you if you wish.

To use this tool, open a terminal window, and move the the directory you wish to use. Then simply type the above tool name and the lab you want. For example, for all labs related to Session J1 from the first lab, type


~walker/152/lab-setup J1

The files required for that lab then are copied and compiled. If, however, a file with the given name already exists in your directory, then you are asked if you want to overwrite the existing file. (Answer y to overwrite, n to keep the old file.)

Further Work

To continue with labs for this course, refer to Mr. Rebelsky's Web site for Experiments in Java.


This document is available on the World Wide Web as

http://www.cs.grinnell.edu/~walker/courses/152.sp01/lab-beginning-java.html

created January 24, 2001
last revised January 24, 2001
Henry Walker (walker@cs.grinnell.edu)