Getting Ready to Use DrJava

This chapter describes how to start using DrJava, including where to get the program and how to run it.

Downloading the JDK

To compile programs in DrJava, you must make sure you have a Java JDK (Java Development Kit) installed on your machine. All Java distributions available for downloading come in two forms: a JDK and a JRE (Java Runtime Environment). A JDK distribution consists of a JRE distribution (a Java Virtual Machine implementation) plus a collection of development tools including javac, a Java compiler, and javadoc, Java documentation generator. DrJava requires a JDK installation because it uses both javac and javadoc as plugin components. Without these components, DrJava can only edit Java programs; it cannot execute them or generate documentation for them. If you do not have a JDK installed already, you can download one for Windows, Linux, or Solaris computers directly from the Sun Microsystems webite. Apple Macintosh machines running Mac OS X already have a JDK installed. To download a JDK from the Sun website, just follow these steps!