<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Brian Henning wrote:
<blockquote cite="mid009401c4aade$c96f1b20$2101a8c0@D80HM141"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">What version of Ant ?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Ant-1.6.2.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Do you have a CLASSPATH environment variable set ?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Not that I can tell.  I've found that if I set CLASSPATH, it overrides
(rather than augments) the default CLASSPATH, and I don't know enough about
the default CLASSPATH to correctly duplicate the important bits in a custom
CLASSPATH.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Ant does include a version of Xerces so there may be a conflict there -
try *not* setting your CLASSPATH variable before running Ant.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
As mentioned, I don't have a CLASSPATH to unset..  But I've tried renaming
the possibly-conflicting jars in $java_bin\lib\ext (by changing their
extensions to things like jarx), to no avail.

Any other suggestions?

Continued thanks,
~Brian
  </pre>
</blockquote>
I found this in the Ant FAQ :<br>
<br>
I installed Ant 1.6.x and now get <code>java.lang.InstantiationException:
org.apache.tools.ant.Main</code>
<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>.<br>
</p>
<p><br>
</p>
</body>
</html>