Re: Failed to create Java Project...



On Mar 12, 12:26 am, Roedy Green <see_webs...@xxxxxxxxxxxxxxxxxxxx>
wrote:
On Mon, 10 Mar 2008 10:42:20 -0700 (PDT), Estroc <estro...@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

java.lang.NoClassDefFoundError: org/apache/tools/ant/Main

sounds as if you are supposed to do something to register the ant
jars with Eclipse. Find the install docs.
--

Roedy Green Canadian Mind Products
The Java Glossaryhttp://mindprod.com

Roedy,

I checked my Eclipse settings:
Windows -> Preferences -> Ant -> Runtime
and the entries in the Classpath tab are all seem OK:

Ant Home Entries
Global Entries
Contributed Entries

In particular, the first entry under "Ant Home Entries" is
/usr/lib/eclipse/plugins/org.apache.ant_1.6.5/lib/ant.jar
and I double check using "jar -tvf" command on the "ant.jar".
There is indeed a "org/apache/tools/ant/Main.class" in that jar.

Everything seems OK, but it still gives me the following error.
Any idea what should I do.

Thanks in advance,

Estro

java.lang.NoClassDefFoundError: org/apache/tools/ant/Main
at org.apache.tools.ant.Project.initProperties(Project.java:
308)
at org.apache.tools.ant.Project.init(Project.java:295)
.



Relevant Pages

  • Re: Failed to create Java Project...
    ... sounds as if you are supposed to do something to register the ant ... jars with Eclipse. ... I checked my Eclipse settings: ... the first entry under "Ant Home Entries" is ...
    (comp.lang.java.softwaretools)
  • Re: Failed to create Java Project...
    ... sounds as if you are supposed to do something to register the ant ... jars with Eclipse. ... I checked my Eclipse settings: ... the first entry under "Ant Home Entries" is ...
    (comp.lang.java.softwaretools)
  • Re: Failed to create Java Project...
    ... sounds as if you are supposed to do something to register the ant ... jars with Eclipse. ...
    (comp.lang.java.softwaretools)