Richard G Baldwin (512) 223-4758, NRG Room 4238, Baldwin@DickBaldwin.com, http://www.austincc.edu/baldwin/

ITSE2317 Java Programming (Intermediate)

This material applies to classroom sections and Distance Learning sections taught by Professor Baldwin.

Running DrJava at ACC-NRG

Summer 2010

Revised: 05/24/10

The official web page for this course is ITSE2317.htm

When you use DrJava in conjunction with Ericson's media library, you must set the classpath in DrJava to point to the media library on your disk.  Instructions for doing this are provided in the textbook and on the CD in the back of the textbook.

(Note however that although there is a copy of the media library on the CD in the back of the textbook, it is lacking some features and has a few known bugs.

You'll need to download the Java 1.5+ version: bookClasses10-1-07.zip.  This version has some new features as seen at New Features in 8-14-07 or later bookClasses.  For more information, see http://coweb.cc.gatech.edu/mediaComp-plan/101.)

For those working in the ACC lab at NRG, I have developed an alternative, somewhat more streamlined approach to setting the classpath and starting DrJava.

Preparing DrJava and the media library for your personal use

After you get your lab account for my course, you will have access to a folder named Baldwin on your I-Drive.  Among other things, that folder will contain two folders named MediaCompBookCD and MediaCompDrJava(The folder named MediaCompBookCD will contain the media library class files from the zip file named bookClasses10-1-07 described earlier.)

  1. Copy those two folders into the root of your H-drive.  You should only need to do this once..

Running DrJava with the media library

After completing the step described above, whenever you need to run DrJava:

  1. Open the folder named H:\MediaCompDrJava.
  2. Double-click on the file named H:\MediaCompDrJava\RunDrJavaAtACC.bat.  This should cause the DrJava IDE to start running (but it may take awhile).

Testing DrJava with the media library

Once DrJava is running, you can test to confirm that the classpath is set properly by performing the following steps:

  1. Open the folder named H:\MediaCompDrJava\TestProgram.
  2. Drag the file named Picture.java into the DrJava IDE main window.
  3. Click the Compile button at the top.
  4. When the "Compilation completed" message appears at the bottom, click the Run button at the top.  A Picture of a beach should appear on your screen if everything is linked properly.

Compiling and running from the command line

You should also be able to compile and run the test program from the command line by double-clicking on the file named H:\MediaCompDrJava\TestProgram\goPicture.bat.

-end-

File: ITSE2317Orientation.htm