CSE 8A: Computer Setup

Steps to setup your home machine for CSE8A (Windows biased)

IMPORTANT: If you follow the directions in the README on the CD for this class, you may end up with JDK 1.6 and Dr. Java 1.5 which are not compatible. Please follow the steps here.

The key components to getting Dr. Java running on your home machine are:
1. Installing the latest version of JDK from Java.
2. Installing the latest version of Dr. Java.
3. Copying the files you need from the CD that came with the book to your computer.
4. Setting up the class path in Dr. Java.

Installing the latest version of JDK

1. Go here for the latest version of Java.
2. Download JDK 6 Update 7 for your personal machine
If you are running Windows and are not sure if you have a 64 bit OS, you likely want Windows (not Windows 64) Multi-Language which is: jdk-6u7-windows-i586-p.exe
3. After downloading, run the file (double-click) to install.
4. After the install is finished (you may need to reboot), double check the install by opening up a command window (Start->Run->cmd) and typing:
> java -version
The output should be: java version "1.6.0_07"

Getting the latest version of Dr. Java

1. Go here for the latest version of Dr. Java.
2. Download the Current Stable Release for your machine

a. This is likely the Windows App named drjava-stable-20080904-r4668.exe
b. Move the file to C:\DrJava\ (create the directory if needed)

Copying the files from your CD to your hard drive

1. Copy the MediaTools folder from your CD to your C drive. The result should be that you have C:\MediaTools\
2. Copy the intro-prog-java folder from your CD to your C Drive. The result should be that you have C:\intro-prog-java\

UPDATE! A new version of the bookClasses are available.

1. You still need to copy the files from your CD to your C Drive. See above.
2. If you have modified any of the files in C:\intro-prog-java\bookClasses\ please make a copy of them in another location.
3. Download the bookClasses from here. Extract the files and place them in your hard drive so the .java and .class files are in C:\intro-prog-java\bookClasses\ (*NOTE: You will be overwriting the files in C:\intro-prog-java\bookClasses\ that you copied from the CD. That is why we asked you make a copy of any changed files in another location.)
4. If you have any files from step 2, you will need to merge your changes into the new files.

Setting up Dr. Java

Depending on the order of install, Dr. Java may be running correctly. To be sure:
1. Run Dr. Java (double-click on C:\DrJava\drjava-stable-20080904-r4668.exe - you can trust the file so if you get a warning, say yes)
2. Go to the "Compiler Output" tab in the bottom left of the screen. When you star Dr. Java it should say:

Compiler ready: JDK 5.0_5 from C:\Program Files\Java\jdk1.5.0_05\lib\tools.jar.
3. Go to Edit->Preferences
4. If it gave you the correct message in step 2, you can skip to step 7.
5. Under the option (on the left) Resource Locations, click on the "..." to the right of the Tools.jar Location
6. Use the File browser to go to C:\Program Files\Java\jdk1.5.0_05\lib\ and then click on tools.jar and click on "Select"
7. Click on "Add" below Extra Classpath and use the file browser to select C:\intro-prog-java\bookClasses
8. Click on "Apply" then "Ok" at the bottom of the Preferences Window.

Success!!!

Dr. Java should now be running correctly for you and you are now able to do your work on your home computer. If you have questions or problems, please check the discussion board in WebCT and see if we've already answered your question. If not, please post your question/problem on the discussion board in WebCT so we can answer everyone who might have your problem.