Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ant build failed
Ant build failed [message #137870] Thu, 29 January 2004 22:47 Go to next message
Eclipse UserFriend
Originally posted by: benwu.icsc.com.tw

I try to run ant from Eclipse and learn it step by step from the book
"Eclipse in Action". I can run build.xml successfully from the Dos commend
line but encounter below messages within Eclipse. May anyone give me a hint
what's wrong with the setting in the Eclipse? Thanks.

"BUILD FAILED: java.lang.NoSuchMethodError:
org.apache.xerces.xni.parser.XMLComponent.getFeatureDefault( Ljava/lang/Strin
g;)Ljava/lang/Boolean;
Total time: 180 milliseconds"

Ben Wu
Re: Ant build failed [message #137895 is a reply to message #137870] Thu, 29 January 2004 23:27 Go to previous messageGo to next message
Eclipse UserFriend
Always stated which Ant you are using and which Eclipse build you are using.
For Ant 1.5.4 and older and Eclipse M5 and older you need to remove the
Xerces JARs from the Ant runtime classpath...AND if you are pointing to an
Ant install to use as your Ant home you will need to physically remove the
xerces JARs from co-locating with the Ant JARS (this is all described in the
Eclipse README).

For Ant 1.6.0 you only need to remove the Xerces JARs with Eclipse M5 and
older.
With newer Eclipse builds you can leave the Xerces JARs on the Ant runtime
classpath.

HTH
Darins

Remove
"BenWu" <benwu@icsc.com.tw> wrote in message
news:bvck1b$af6$1@eclipse.org...
> I try to run ant from Eclipse and learn it step by step from the book
> "Eclipse in Action". I can run build.xml successfully from the Dos
commend
> line but encounter below messages within Eclipse. May anyone give me a
hint
> what's wrong with the setting in the Eclipse? Thanks.
>
> "BUILD FAILED: java.lang.NoSuchMethodError:
>
org.apache.xerces.xni.parser.XMLComponent.getFeatureDefault( Ljava/lang/Strin
> g;)Ljava/lang/Boolean;
> Total time: 180 milliseconds"
>
> Ben Wu
>
>
Re: Ant build failed [message #137919 is a reply to message #137895] Thu, 29 January 2004 23:46 Go to previous message
Eclipse UserFriend
Originally posted by: benwu.icsc.com.tw

Thanks, Darin. The problem is solved.
The Eclipse build I use is Eclipse 2.1.2 with the Ant 1.5.3.

Ben
"Darin Swanson" <Darin_Swanson@us.ibm.com>
Previous Topic:QT version of eclipse...
Next Topic:Syntax highlighting .txt files?
Goto Forum:
  


Current Time: Sat Jun 21 08:49:46 EDT 2025

Powered by FUDForum. Page generated in 0.03835 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top