Java Reference
In-Depth Information
Example 9.1 Validating and extracting the ant tarball
$ cat jakarta-ant-1.5.1-bin.tar.gz.md5
2be27d9e09011bf1cc3d1967ee34f7d1
$ md5sum jakarta-ant-1.5.1-bin.tar.gz
2be27d9e09011bf1cc3d1967ee34f7d1 jakarta-ant-1.5.1-bin.tar.gz
$ zcat jakarta-ant-1.5.1-bin.tar.gz | tar xf -
$ cd jakarta-ant-1.5.1
$ ls
bin docs etc KEYS lib
LICENSE LICENSE.dom LICENSE.sax LICENSE.xerces README
welcome.html WHATSNEW
$
to multiple (or all) users on the system, you will want to untar as root and
move the resulting directories to locations convenient to other users, such as
/usr/local .
Whether for one user or for many, there is a handful of remaining tasks
to make ant usable.
9.3.1.1
The JAVA_HOME environment variable should already be set as a result of setting
up your JDK. JAVA_HOME should point at the base of your JDK installation.
The ANT_HOME environment variable should be set to point at the untar-
ed installation of ant . In our sample here, it would be ~/jakarta-ant-1.5.1 .
Make sure that the bin directory of the ant installation is added to
your PATH .
Environment Variables
9.3.2
We do not encourage you to install ant from source, although we do encourage
you to download and study the ant source. It is an excellent sample Java
application.
If you must build from source, the start of the process is the same as above.
You download the tarball, verify it with GPG or md5sum , then unzip and
untar it.
Installing a Source Tarball
Search WWH ::




Custom Search