From 70b487e7b2aef0f79783cdf1df548447b02a30ad Mon Sep 17 00:00:00 2001
From: Peter Reilly web-inf
or JAR files with a lower-case
meta-inf
directory.
- Exception in thread "main" java.lang.NoClassDefFoundError:
- org/apache/tools/ant/launch/Launcher
+
+
+ java.lang.InstantiationException: org.apache.tools.ant.Main
-
+
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
-
+ 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.
+
Exception in thread "main" java.lang.NoClassDefFoundError:
- org/apache/tools/ant/launch/Launcher
+
+ java.lang.InstantiationException: org.apache.tools.ant.Main