Java Reference
In-Depth Information
Figure C.1: Checking the Version of Java
Once you have Java installed, you must install Apache Ant.
Installing Apache Ant
Apache Ant is a software application used to build Java projects. This topics examples
include an ant build script ( build.xml ). To compile the examples in this topic using this
build script, you will need to install Apache Ant. The latest version of Apache Ant can always
be found at the following URL.
http://ant.apache.org/
When you download Apache Ant, you will obtain a tar.gz file. Using the finder, copy
this file to your user directory. The rest of the install will be done from a terminal window.
Open a terminal window and enter the following command:
sudo -s
This will transform you into the super user. To install ant, you must be the super user. If
this is the first time that you have logged in as the super user, you will be given a brief warn-
ing. You can see this warning in Figure C.2.
Search WWH ::




Custom Search