![]() |
Working at Home |
This document should help you get set up for working on a home computer. We'll use the following two tools in this class:
We're not particularly religious about which development environment you use. You can do many of the assignments in this class with very simple tools - see the end of the document for a low-tech (yet surprisingly powerful and useful) approach - or with other Java 2 programming environments like JBuilder, CodeWarrior, and so forth. (But not Microsoft J++; although it is a well-designed Java environment, it has not been updated in several years and does not support Java 2.)
If you want to work at home you are on your own to some extent in terms of getting stuff set up. Ask friends, read documentation, ask us -- but we can't be guaranteed to fix things for you. The lab is always available as a fallback.
Regardless of the development environment that you use, the code you turn in should only rely on the standard Sun Java libraries, and libraries that are distributed by us. Your code should not rely on "wizards" or special libraries that might be provided with your environment.
The distribution is big, roughly 31MB, so if you're connecting by modem, it's going to be a pain. DSL or CableModem users should have an easier time. Fortunately, the CD provided with the textbook includes the Java 2 SDK. Usually, after downloading, the installation is pretty straightforward. A couple of notes:
Be sure to install it in a location where the pathname has NO spaces
(not: C:\Program Files\etc\etc; something like C:\jdk1.3 or C:\jdk1.3.1
(the default names picked by the JDK installer) will make your life much
easier). Sometimes other software is not very tolerant of the spaces in the
pathname.
It's also worth writing down the name of the directory where you install the
JDK when you do it (eg. "C:\jdk1.3.1"). You may need to remember this
later.
Be sure you install the full Java Development Kit (JDK). There is a
smaller package called the Java Runtime Environment (JRE), which is a subset fo
the JDK that includes files needed to run, but not create, Java programs.
The JRE is not adequate for our purposes - be sure to get the JDK.
Here are instructions for installing the remaining courseware. This is the same setup that (will be) installed in the UWired general labs, including MGH and OUGL.
The course software should be installed at this point. If you'd like, you can create shortcuts to files bulej.bat and jeva.bat, which you could put in more convenient places like the desktop. Be sure to create shortcuts; don't move the .bat files themselves, if you do, things are likely to break.
javac
that you can use to compile programs, and a functional debugger, called jdb
.
You'll want to use a good editor to write your programs, the best of which is
emacs (see our help pages about this editor). There is
a better (faster) compiler available called jikes,
from IBM. The advantage of using this approach is while it may not be quite as
easy as an integrated environment, you'll learn to use some tools that you can
use in many other contexts as well.