Browse Source

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
master
Peter Reilly 21 years ago
parent
commit
70b487e7b2
2 changed files with 43 additions and 6 deletions
  1. +24
    -4
      docs/faq.html
  2. +19
    -2
      xdocs/faq.xml

+ 24
- 4
docs/faq.html View File

@@ -283,10 +283,15 @@
<code>web-inf</code> or JAR files with a lower-case <code>web-inf</code> or JAR files with a lower-case
<code>meta-inf</code> directory. <code>meta-inf</code> directory.
</a></li> </a></li>
<li><a href="#NoClassDefFoundError">
<li><a href="#InstantiationException">
I installed Ant 1.6.x and now get I installed Ant 1.6.x and now get
<code>Exception in thread "main" java.lang.NoClassDefFoundError: <code>Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher</code>
</code>
</a></li>
<li><a href="#NoClassDefFoundError">
I installed Ant 1.6.x and now get
<code>java.lang.InstantiationException: org.apache.tools.ant.Main</code>
</a></li> </a></li>
</ul> </ul>
@@ -1110,10 +1115,25 @@ shell-prompt&gt; m4 foo.m4 &gt; foo
section, check the "Allow all upper case files names" box. The META-INF and section, check the "Allow all upper case files names" box. The META-INF and
WEB-INF will look correct.</p> WEB-INF will look correct.</p>
<p class="faq"> <p class="faq">
<a name="NoClassDefFoundError"></a>
<a name="InstantiationException"></a>
I installed Ant 1.6.x and now get I installed Ant 1.6.x and now get
<code>Exception in thread "main" java.lang.NoClassDefFoundError: <code>Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher</code>
</code>
</p>
<p>
The cause of this is that there is an old version of ant somewhere in the
class path or configuration.
</p>
<p>
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.
</p>
<p class="faq">
<a name="NoClassDefFoundError"></a>
I installed Ant 1.6.x and now get
<code>java.lang.InstantiationException: org.apache.tools.ant.Main</code>
</p> </p>
<p> <p>


+ 19
- 2
xdocs/faq.xml View File

@@ -793,10 +793,27 @@ shell-prompt> m4 foo.m4 > foo
</answer> </answer>
</faq> </faq>


<faq id="NoClassDefFoundError">
<faq id="InstantiationException">
<question>I installed Ant 1.6.x and now get <question>I installed Ant 1.6.x and now get
<code>Exception in thread "main" java.lang.NoClassDefFoundError: <code>Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher</code>
</code>
</question>
<answer>
<p>
The cause of this is that there is an old version of ant somewhere in the
class path or configuration.
</p>
<p>
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.
</p>
</answer>
</faq>

<faq id="NoClassDefFoundError">
<question>I installed Ant 1.6.x and now get
<code>java.lang.InstantiationException: org.apache.tools.ant.Main</code>
</question> </question>
<answer> <answer>
<p> <p>


Loading…
Cancel
Save