From 3c922aa285e563f0e5d3e54c80677237c9819291 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Tue, 13 Jul 2004 11:54:07 +0000 Subject: [PATCH] opps: forgot to commit the faq.xml for the faq.html git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276692 13f79535-47bb-0310-9956-ffa450edef68 --- xdocs/faq.xml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/xdocs/faq.xml b/xdocs/faq.xml index 664ccb976..4634a0913 100644 --- a/xdocs/faq.xml +++ b/xdocs/faq.xml @@ -787,6 +787,34 @@ shell-prompt> m4 foo.m4 > foo WEB-INF will look correct.

+ + + I installed Ant 1.6.x and now get + Exception in thread "main" java.lang.NoClassDefFoundError: + org/apache/tools/ant/launch/Launcher + + +

+ The cause of this is that there is an old version of ant somewhere in the + class path or configuration. +

+

+ A version of this problem may be seen on some linux systems. + Some linux systems (Fedora Core 2 for example), comes with a version + of ant pre-installed. There is a configuration file called + /etc/ant.conf which if present, the ant shell + script will 'dot' include. On Fedora Core 2, the /etc/ant.conf + file resets the ANT_HOME environment variable to + /usr/share/ant. This causes the problem that + an old version of ant (1.5.x in this cause) will be used + with a new version of the ant script file. +

+

+ One can check if this is the case by doing + ant --noconfig -version. +

+
+
@@ -1514,4 +1542,4 @@ mv /tmp/foo $ANT_HOME/bin/antRun - \ No newline at end of file +