From 37b61712579673660fe8dc898bdac473aa38a257 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Mon, 28 Jun 2004 17:00:48 +0000 Subject: [PATCH] add NoClassDefFoundError to faq.xml git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276650 13f79535-47bb-0310-9956-ffa450edef68 --- docs/faq.html | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/faq.html b/docs/faq.html index e4e4ce268..4810bd87b 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -282,6 +282,12 @@ Ant creates WAR files with a lower-case web-inf or JAR files with a lower-case meta-inf directory. + +
  • + I installed Ant 1.6.x and now get + Exception in thread "main" java.lang.NoClassDefFoundError: + org/apache/tools/ant/launch/Launcher +
  • Ant and IDEs/Editors

    @@ -1093,6 +1099,32 @@ shell-prompt> m4 foo.m4 > foo configuration. In the Options/Configuration menu, in the View tab, General section, check the "Allow all upper case files names" box. The META-INF and 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. +

    Is Ant supported by my IDE/Editor?