Browse Source

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
master
Peter Reilly 21 years ago
parent
commit
3c922aa285
1 changed files with 29 additions and 1 deletions
  1. +29
    -1
      xdocs/faq.xml

+ 29
- 1
xdocs/faq.xml View File

@@ -787,6 +787,34 @@ shell-prompt> m4 foo.m4 > foo
WEB-INF will look correct.</p> WEB-INF will look correct.</p>
</answer> </answer>
</faq> </faq>

<faq id="NoClassDefFoundError">
<question>I installed Ant 1.6.x and now get
<code>Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/tools/ant/launch/Launcher</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 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
<code>/etc/ant.conf</code> which if present, the ant shell
script will 'dot' include. On Fedora Core 2, the /etc/ant.conf
file resets the <code>ANT_HOME</code> environment variable to
<code>/usr/share/ant</code>. 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.
</p>
<p>
One can check if this is the case by doing
<code>ant --noconfig -version</code>.
</p>
</answer>
</faq>
</faqsection> </faqsection>


<faqsection title="Ant and IDEs/Editors"> <faqsection title="Ant and IDEs/Editors">
@@ -1514,4 +1542,4 @@ mv /tmp/foo $ANT_HOME/bin/antRun
</faq> </faq>
</faqsection> </faqsection>


</document>
</document>

Loading…
Cancel
Save