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.
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.
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-
Change your Emacs configuration (.emacs) file to load gjdb.el, by adding
a command such as
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).
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.
Make sure that EDIR here is the full path of the directory in which
you placed gjdb.el.
Address comments and questions to email@example.com
Change your Emacs configuration (.emacs) file to load gjdb.el, by adding a command such as