Can't tell too much from your brief description. The first question is whether this is an issue with Ant itself or your build.xml
file.
Eclipse installs it's own version of Ant. I recommend you download the latest from the Ant Project page. It's version 1.9.1 or 1.9.2.
Now, let's do a simple test. Write a simple build.xml:
<project>
<echo>Hello, world!</echo>
</project>
And, run that. If this works, the problem may be your build.xml
file It might depend upon embedded Eclipse jars.
However, looking up this particular error in Grep Code, I see it's a dependency upon the Java JDK itself.
Again, Eclipse will come with an embedded JDK (it requires a JRE to run, but needs the JDK to compile). Do you have Java 1.6 or Java 1.7 JDK installed on your system? Do you have it in your path? Do you have $JAVA_HOME
set on your terminal pointing to it? Is $JAVA_HOME
exported (if you're using Mac or Linux or Unix)?
Try each of these things, then update your question with your findings.