Programming Assignment 0

Overview

This is an optional programming assignment. It should be done individually. The objective is to successfully submit a Hello World program to the handing directory that works with the supplied Ant build file.

Instructions

  1. Using Eclipse or your favorite editor/IDE, create a Hello World program in Java (that is, a program that just outputs “Hello world” or something similar and exits).
  2. Download the Ant build file here and place it in your project directory at top level.
  3. From within your project directory, run the command ant. You should see a BUILD SUCCESSFUL message or something to that effect.
  4. Make sure to run ant clean before turning in your project.

Troubleshooting

BUILD FAILED
/Users/jpaton/Documents/workspace/HelloWorld2/src/build.xml:17: srcdir "/Users/jpaton/Documents/workspace/HelloWorld2/src/src" does not exist!

A message like this means you’ve placed the build file in the wrong directory. The script assumes that your files are located under the src/ directory and that the build.xml file is in the same directory as the src/ directory.

Submission Instructions

If you’re reading this, it means I haven’t added submission instructions to this assignment. You should post to Piazza about it.