From 70b487e7b2aef0f79783cdf1df548447b02a30ad Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Wed, 8 Sep 2004 09:59:13 +0000 Subject: [PATCH] Add the InstantiationException: org.apache.tools.ant.Main error to the FAQ git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276831 13f79535-47bb-0310-9956-ffa450edef68 --- docs/faq.html | 28 ++++++++++++++++++++++++---- xdocs/faq.xml | 21 +++++++++++++++++++-- 2 files changed, 43 insertions(+), 6 deletions(-) diff --git a/docs/faq.html b/docs/faq.html index cca8afa92..7af6c815b 100644 --- a/docs/faq.html +++ b/docs/faq.html @@ -283,10 +283,15 @@ 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 + + +
  • +
  • + I installed Ant 1.6.x and now get + java.lang.InstantiationException: org.apache.tools.ant.Main
  • @@ -1110,10 +1115,25 @@ shell-prompt> m4 foo.m4 > foo 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 happens with jars that are in the classpath + that include an embedded copy of ant classes. + An example of this is some copies of weblogic.jar. +

    +

    + + I installed Ant 1.6.x and now get + java.lang.InstantiationException: org.apache.tools.ant.Main

    diff --git a/xdocs/faq.xml b/xdocs/faq.xml index 1aabcd268..8ee018856 100644 --- a/xdocs/faq.xml +++ b/xdocs/faq.xml @@ -793,10 +793,27 @@ shell-prompt> m4 foo.m4 > foo - + 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 happens with jars that are in the classpath + that include an embedded copy of ant classes. + An example of this is some copies of weblogic.jar. +

    + + + + + I installed Ant 1.6.x and now get + java.lang.InstantiationException: org.apache.tools.ant.Main