Getting Started with DrJava



This handout describes how to use DrJava in the Computer Science labs. The instructions are applicable to your home machine as well, but the directory you store your program in will be different.

Table of Contents

Preliminaries
Starting DrJava
Creating a simple application
Printing your source
Printing your output
Exiting and reentering
Adding a user-defined package to your project

Preliminaries:

Starting DrJava:

OR

Creating a simple application


Printing your source:

  • Click on HelloWorld.java in the Navigator pane on the left to make it the code displayed in the Definitions pane.
  • On the File menu select the Print option. You will be asked to select a printer.
  • Printing your output:

    Exiting and reentering:

    Adding a user-defined package to DrJava: