Using JERPA in the Sunlab

Introduction

JERPA is a utility that sets up all required directories and classpaths and allows you to compile and run a program with a few mouse clicks. In CS16, all students will use JERPA, whether you choose to program on a Linux or Windows platform. (JERPA has not yet been developed for Macs, but can be run on Mac OS X if you're not afraid of a little hacking).

Important Note

JERPA is a graphical program, and as such, various windows will pop up on your screen when you use JERPA. When using JERPA in the Sunlab, these windows will occaisionally appear so small than you will not be able to view their contents (but you will always be able to see at least a frame). When this happens, simply resize the offending window (by dragging a corner) so that you can see what's inside the window. If JERPA seems to be hanging, look carefully to make sure you haven't missed any popup windows!

Setting up JERPA

Enter /course/cs016/bin/jerpa-init in a shell, and you will be prompted for an installation location. The default is your home directory, and we recommend using that (simply hit enter). You can choose to install JERPA in any existing directory, however. A directory will be created (in the installation location) named jerpa, and several subdirectories within that.

Running the JERPA Client for the first time

CD into the jerpa directory, then enter run-jerpa in a shell. When you first run the client, you will see a "login" window:

The JERPA client supports multiple local user "profiles". Your username should already be in the "Select a local user" drop box. If it isn't, click "New User" and enter your CS login for your username. Entering your name is optional.

Ensure that your ID is selected and click Login to run the client.

The JERPA Client main interface is shown above. The window at the top is what you will be using to install CS16 assignments on your machine. To its left is the "JERPA Output" window, which will display any messages from the Client. (The other window is the Java output window. This will display all messages printed to the System.out and System.err streams; it is unlikely that you will need to refer to this.)

You will need to set up JERPA so that it knows you are taking CS16. In the WorkManager window, under "Courses," click on "Add Course." You will be prompted for the online location of the course data. The location for CS16, "www.cs.brown.edu/courses/cs016/dle/", should already be displayed here. If this is not the case, enter this string here, and click OK. You will then see a window displaying any courses found at this location. "cs16" should be the only entry listed. Click on this entry, then on the "Install Course" button. "cs16" should now show up as an entry in the "Courses" list in the WorkManager. Click on this entry and all assignments found for CS16 will be listed under "Assignments/Projects".

Using JERPA Client to Install Assignments

Run JERPA client if it is not already running. In the WorkManager window, click on the "cs16" entry under "Courses". This will list all assignments for this course found on the server:

Now, select the desired assignment from the "Assignments" list, and click on the "Install" button. This will copy all of the files needed for that assignment to the proper places. You should see a flurry of messages in the "JERPA Output" window, with occasional pauses as larger files are downloaded/copied. Once the process is complete, the "status" for that assignment in the assignments list should change from "Avail; not Installed" to "Installed Locally."

Working on the Assignment

You are now ready to work on that assignment! Note that for future assignments, you will only have to repeat the above one step (transferring the Assignment); everything leading up to that only needs to be done once.

Installing an assignment does the following: