ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Waugh" <ptwa...@gmail.com>
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:
org/apache/tools/ant/launch/Launcher
Caused by: java.lang.ClassNotFoundException:
org.apache.tools.ant.launch.Launcher
	at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
patrick@berrysoft:~$

What am I missing?

Patrick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message