Before you can do anything at home, you need to make sure that you have a Java Development Kit (JDK) installed on your computer. If you've used the internet before, then there's a good chance that you already have a Java Runtime Environment (JRE) on your computer. Sadly, the JRE doesn't know how to compile the new Java programs that you're going to write in this class. It can only run previously compiled programs.
The first thing you need to do is go to the Java SE Downloads website and download JDK 5.0 Update 12. There are a lot of options on this site, so be sure to get the version we'll be using in the class. Unless the website has changed in the last few weeks, it should look something like this:
The first thing you need to do is go to the Apple Support Downloads Java 2 SE 5.0 page and download the JDK for OS X. Assuming things work, your web page should look something like this:
Eclipse is a powerful integrated development environment (IDE), which means that it will do nice things like auto-complete our code, keep track of our files, and generally (hopefully) make our life as programmers easier. The best part about it is it is completely free. To get a copy, browse to the Eclipse Downloads page. We will want the Eclipse IDE for Java Developers. By default, you'll download the Windows version. Copies for OS X (and Linux) are available by clicking the links to the right.
Once you've downloaded Eclipse, the installation is easy: just unzip it to the directory of your choice. I've created a shortcut on my desktop. Be sure you know where you've unpacked Eclipse. We'll need to put more things in that folder soon.
Part of the power of Eclipse derives from its very flexible plug-in architecture. We are going to add the functionality of a learning environment called Dr. Java to Eclipse. To do so, you'll need to go to the Dr. Java plug-in download page. Once you've go the file, the installation, again, is easy: just unzip the file into the Eclipse plugins directory.
The name of the folder containing the Dr. Java plug-in should be named edu.rice.cs.drjava_0.9.8. On a windows, your screen might look something like this:
Now whenever you run Eclipse, you'll be able to take advantage of the added functionality supplied by the Dr. Java plug-in.
You won't have to write everything from scratch. In fact, one of the basic premises of object-oriented design is reuse. We'll constantly take advantage of the programmers who came before us throughout this course, and it begins now. We're going to use some of classes designed for media computation developed at Georgia Tech by Barbara Ericson. For now it is enough to download csit114-2007-classes.jar to a folder on your computer. We will learn how to integrate the classes contained in this JAR file into our work as is necessary in class. I've put the file in a folder called CSIT 114 on my desktop for future convenience. You can put it anywhere that you'll remember.