Hello, World in Java 1.5 on Mac OS X


This document instructs you on how to setup a Java programming environment for your Mac OS X computer and provides a step-by-step guide for creating, compiling, and executing a Java program. You must be using Mac OS X v 10.4.5 Tiger or later. (Previous versions do not support Java 1.5.) All of the software is freely available on the Web.

Java

To check if Apple's implementation of Java 2 Standard Edition (J2SE 5.0) is already installed:

If the J2SE 5.0 folder does not exist:

DrJava

You will develop your Java programs in an application called DrJava. DrJava features many specialized programming tools including syntax highlighting, bracket matching, auto indenting, indent shifting, and line numbering. To install DrJava:

Launch DrJava and make the following customizations.