ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Waugh" <>
Subject Ant 1.7.1 install on Ubuntu problem
Date Sat, 27 Sep 2008 10:26:35 GMT
I'm trying to install Ant system-wide on my Ubuntu Hardy.

I downloaded apache-ant-1.7.1-bin.tar.gz, unzipped it, while root in
/usr/share, then renamed the directory (mv) to "ant".

I then created a symbolic link to ant in /usr/bin (which is on the
path), and did this

export ANT_HOME=/usr/share/ant
export JAVA_HOME=/usr/local/jdk1.6.0.07

and even

export PATH=$PATH:/usr/share/ant/bin

but when I run ant I get this:

patrick@berrysoft:~$ export JAVA_HOME=/usr/local/jdk1.6.0_07
patrick@berrysoft:~$ export ANT_HOME=/usr/share/ant
patrick@berrysoft:~$ ant
Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException:
	at Method)
	at java.lang.ClassLoader.loadClass(
	at sun.misc.Launcher$AppClassLoader.loadClass(
	at java.lang.ClassLoader.loadClass(
	at java.lang.ClassLoader.loadClassInternal(

What am I missing?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message