I am trying to install ANT (to build/compile Android apps) on a local Linux (Ubuntu) installation so that I can install it on a live server (work out the kinks first).
The following is a set of commands I have run to get to where I am:
wget http://archive.apache.org/dist/ant/ant-current-src.zip /dest/folder
unzip ant-current-src.zip
wget http://download.oracle.com/otn-pub/java/jdk/6u25-b06/jdk-6u25-linux-x64.bin /dest/folder
./jdk-6u25-linux-x64.bin
(backup PATH :P )
export JAVA_HOME=jdk1.6.0_25 export
PATH=$PATH:jdk1.6.0_25/bin
wget http://voxel.dl.sourceforge.net/project/junit/junit/4.10/junit-4.10.jar
cp junit-4.10.jar junit.jar
rm junit-4.10.jar
export CLASSPATH=$CLASSPATH:$JUNIT_HOME
With the following screenshot showing the output of the terminal:

At this point I’m stumped…
RESOURCES:
http://ant.apache.org/manual/index.html -> Installing Apache Ant -> Building Ant
You do not need to build ant to use and you can just install Java and Ant from the ubuntu packages.
should install Java and ant for you.