Simple Eclipse/Ant/JAR question [message #127070] |
Fri, 12 December 2003 22:25 |
Eclipse User |
|
|
|
Originally posted by: wilco909.hotmail.com
I'm trying to write a really simple Java app that uses the Xerces XML
libraries. Ideally, I'd like to get this working with Eclipse and Ant.
When I run my Ant task through Eclipse, I get:
BUILD FAILED: java.lang.NoSuchMethodError:
org.apache.xerces.xni.parser.XMLComponent.getFeatureDefault( Ljava/lang/String;)Ljava/lang/Boolean;
The Xerces JAR files are all set up in the Ant task CLASSPATH settings.
Without these entries, I get a class not found error.
I can run ant from the command line fine and Eclipse can compile my
source directly as well. Any ideas why this error would occur? I assume
the mentioned method is in one of the JAR files. Would tracking that
method down help?
|
|
|
|
Re: Simple Eclipse/Ant/JAR question [message #127177 is a reply to message #127097] |
Sat, 13 December 2003 18:15 |
Eclipse User |
|
|
|
Originally posted by: wilco909.hotmail.com
I'm using Eclipse 2.1.2. I'm willing to try the latest milestone if it
may help but I assume 2.1.2 is a better choice since I need stability
more than new features.
Darin Swanson wrote:
> More details needed
> Which Eclipse build are you using?
>
> "Roger Wilco" <wilco909@hotmail.com> wrote in message
> news:brdf2l$nij$1@eclipse.org...
>
>>I'm trying to write a really simple Java app that uses the Xerces XML
>>libraries. Ideally, I'd like to get this working with Eclipse and Ant.
>>When I run my Ant task through Eclipse, I get:
>>
>>BUILD FAILED: java.lang.NoSuchMethodError:
>>
>
> org.apache.xerces.xni.parser.XMLComponent.getFeatureDefault( Ljava/lang/Strin
> g;)Ljava/lang/Boolean;
>
>>The Xerces JAR files are all set up in the Ant task CLASSPATH settings.
>>Without these entries, I get a class not found error.
>>
>>I can run ant from the command line fine and Eclipse can compile my
>>source directly as well. Any ideas why this error would occur? I assume
>>the mentioned method is in one of the JAR files. Would tracking that
>>method down help?
>>
>
>
>
>
|
|
|
Re: Simple Eclipse/Ant/JAR question [message #127428 is a reply to message #127177] |
Mon, 15 December 2003 15:04 |
Eclipse User |
|
|
|
Originally posted by: javibasi.yahoo.es
Hi Roger
Have you checked that method actually exists on your xerces jar? Maybe the
version you used to develop is not the same as the one you're trying to
build with.
Dian Cecht
|
|
|
|
Re: Simple Eclipse/Ant/JAR question [message #127721 is a reply to message #127545] |
Mon, 15 December 2003 20:37 |
Eclipse User |
|
|
|
Originally posted by: wilco909.hotmail.com
Very informative. Thanks to both of you. I will try out M6 when it comes
out.
I really don't care which version of Xerces I use (don't care if I have
to use another XML library although it would preferably be DOM-based),
but without downloading the Xerces JARs and adding them to my classpath,
my import statements failed.
I'm sure you are right, that it is confused between the Eclipse Xerces
and the version I downloaded. The straight command line build works
perfectly (which is what I will use in the meantime).
Thanks again, you guys are very helpful!
Darin Swanson wrote:
> But one of the "new features" of 3.0 is to loosen the tight coupling to the
> xerces implementation that is provided in Eclipse for case just like yours
> where you are trying to use your own set of Xerces libraries.
>
> I would try on 3.0 M5 or 3.0 M6 that comes out later this week.
> I agree with Dian. You are getting a Xerces conflict. In Eclipse 2.1.2 it
> was pretty much impossible not to use the Xerces libraries provided with
> Eclipse. It would appear that those libraries are not compatible with what
> your code expects from the Xerces libs
>
> HTH
> Darins
>
> "Roger Wilco" <wilco909@hotmail.com> wrote in message
> news:brfkqc$km3$1@eclipse.org...
>
>>I'm using Eclipse 2.1.2. I'm willing to try the latest milestone if it
>>may help but I assume 2.1.2 is a better choice since I need stability
>>more than new features.
>>
>>Darin Swanson wrote:
>>
>>
>>>More details needed
>>>Which Eclipse build are you using?
>>>
>>>"Roger Wilco" <wilco909@hotmail.com> wrote in message
>>>news:brdf2l$nij$1@eclipse.org...
>>>
>>>
>>>>I'm trying to write a really simple Java app that uses the Xerces XML
>>>>libraries. Ideally, I'd like to get this working with Eclipse and Ant.
>>>>When I run my Ant task through Eclipse, I get:
>>>>
>>>>BUILD FAILED: java.lang.NoSuchMethodError:
>>>>
>>>
>>>
> org.apache.xerces.xni.parser.XMLComponent.getFeatureDefault( Ljava/lang/Strin
>
>>>g;)Ljava/lang/Boolean;
>>>
>>>
>>>>The Xerces JAR files are all set up in the Ant task CLASSPATH settings.
>>>>Without these entries, I get a class not found error.
>>>>
>>>>I can run ant from the command line fine and Eclipse can compile my
>>>>source directly as well. Any ideas why this error would occur? I assume
>>>>the mentioned method is in one of the JAR files. Would tracking that
>>>>method down help?
>>>>
>>>
>>>
>>>
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04277 seconds