CS 61B: Notes on Installing Our Software at Home

Fall, 2004

This page is under development. Expect glitches.

The Java system

To use any of our stuff, you'll first need Sun's latest Java implementation, J2SE 5. Those of you with Windows and Linux installations at home can download and install it from the link on our home page. Mac users, I fear, are out of luck at the moment, although you can probably test some of your homework assignments using older Java releases.

CS61B Utility Classes

Additional classes that we supply are in the package 'ucb', whose compiled versions we keep in the file ~cs61b/lib/ucb.jar. Download this periodically, because we will update it. A .jar file contains compiled Java classes. To inform the Java system about it, you can place it in the directory(ies) you use for building programs. It is generally better, however, to put it somewhere else, and tell Java about it. On Linux, this means putting ucb.jar in some directory (let's say $HOME/mylib), and then arranging to have the environment variable CLASSPATH contain it, as in

    export CLASSPATH=".:$HOME/mylib/ucb.jar"
for those of you using the bash shell.

GJDB (Linux)

To use gjdb on Linux, you'll need to download gjdb.tgz (a gzipped tar file) or gjdb.Z (a ZIP archive). Unpack the archive using 'tar zxf gjdb.tgz' or 'unzip gjdb.Z' as appropriate in the directory you'd like to use for source and building. Make sure first that the Java compiler you'll be using is in your PATH. Change to the resulting source directory (named gjdb-), and issue the command

./configure --prefix=DIR
where DIR is the directory that will hold your installation (that is, DIR/bin/gjdb will contain an executable, DIR/lib/gjdb.jar will contain Java tools, and DIR/lib/emacs/lisp/gjdb.el will contain the Emacs file). Then type
make install
to compile and install everything. If you'd like to put the Emacs stuff elsewhere, simply configure like this:
./configure --prefix=DIR --emacsdir=EDIR
where EDIR is the desired directory.

Change your Emacs configuration (.emacs) file to load gjdb.el, by adding a command such as

(load "EDIR/gjdb.el")
Make sure that EDIR here is the full path of the directory in which you placed gjdb.el.

Page was last modified on Fri Sep 3 20:12:11 2004.
Address comments and questions to cs61b@cory.eecs.berkeley.edu