13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9.3 Obtaining and Installing Ant219Example 9.1 Validating and extracting the ant tarball$ cat jakarta-ant-1.5.1-bin.tar.gz.md52be27d9e09011bf1cc3d1967ee34f7d1$ md5sum jakarta-ant-1.5.1-bin.tar.gz2be27d9e09011bf1cc3d1967ee34f7d1 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$ lsbin docs etc KEYS libLICENSE LICENSE.dom LICENSE.sax LICENSE.xerces READMEwelcome.html WHATSNEW$to multiple (or all) users <strong>on</strong> the system, you will want to untar as root andmove the resulting directories to locati<strong>on</strong>s c<strong>on</strong>venient to other users, such as/usr/local.Whether for <strong>on</strong>e user or for many, there is a handful of remaining tasksto make ant usable.9.3.1.1 Envir<strong>on</strong>ment VariablesThe JAVA_HOME envir<strong>on</strong>ment variable should already be set as a result of settingup your JDK. JAVA_HOME should point at the base of your JDK installati<strong>on</strong>.The ANT_HOME envir<strong>on</strong>ment variable should be set to point at the untaredinstallati<strong>on</strong> of ant. In our sample here, it would be ~/jakarta-ant-1.5.1.Make sure that the bin directory of the ant installati<strong>on</strong> is added toyour PATH.9.3.2 Installing a Source TarballWe do not encourage you to install ant from source, although we do encourageyou to download and study the ant source. It is an excellent sample Javaapplicati<strong>on</strong>.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 anduntar it.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!