Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Error trying to use external jar
Error trying to use external jar [message #68119] Mon, 09 June 2003 12:33 Go to next message
Eclipse UserFriend
Originally posted by: rdovich.alterpoint.com

I need to read an xml file into a DOM. I tried Xerces but I get I get a
java.lang.NoClassDefFoundError looking for
org/apache/xerces/parsers/AbstractDOMParser at runtime.

I then tried Crimson and get basically the same thing
(java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory).
What am I doing wrong? I simply added the jar to the Java Build Path in the
Libraries tab.

Thanks,
Ron
Re: Error trying to use external jar [message #68201 is a reply to message #68119] Mon, 09 June 2003 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cecconae.ig.com.br

Ron Dovich wrote:

> I need to read an xml file into a DOM. I tried Xerces but I get I get a
> java.lang.NoClassDefFoundError looking for
> org/apache/xerces/parsers/AbstractDOMParser at runtime.

> I then tried Crimson and get basically the same thing
> (java.lang.NoClassDefFoundError: javax/xml/parsers/DocumentBuilderFactory).
> What am I doing wrong? I simply added the jar to the Java Build Path in the
> Libraries tab.

> Thanks,
> Ron

Ron :

Are you trying it in a plugin or in a standalone app ? If you are
running in a standalone app, try to add xercesImpl.jar to the build
classpath. If you are trying to read in a plugin, you need to add
org.apache.xerces_4.0.7 to your plugin dependencies.


Sincerely,
Antonio
Re: Error trying to use external jar [message #68225 is a reply to message #68201] Mon, 09 June 2003 13:32 Go to previous message
Eclipse UserFriend
Originally posted by: rdovich.alterpoint.com

Thanks Antonio! I forgot about the entry required in plugin.xml.

Thanks again for jarring my memory!

Ron


"Antonio Edson Ceccon" <cecconae@ig.com.br> wrote in message
news:bc2f7l$lnl$1@rogue.oti.com...
> Ron Dovich wrote:
>
> > I need to read an xml file into a DOM. I tried Xerces but I get I get a
> > java.lang.NoClassDefFoundError looking for
> > org/apache/xerces/parsers/AbstractDOMParser at runtime.
>
> > I then tried Crimson and get basically the same thing
> > (java.lang.NoClassDefFoundError:
javax/xml/parsers/DocumentBuilderFactory).
> > What am I doing wrong? I simply added the jar to the Java Build Path in
the
> > Libraries tab.
>
> > Thanks,
> > Ron
>
> Ron :
>
> Are you trying it in a plugin or in a standalone app ? If you are
> running in a standalone app, try to add xercesImpl.jar to the build
> classpath. If you are trying to read in a plugin, you need to add
> org.apache.xerces_4.0.7 to your plugin dependencies.
>
>
> Sincerely,
> Antonio
>
>
>
Previous Topic:[ANN] "The Developer's Guide to Eclipse" now shipping
Next Topic:can't find 'swt.jar' (Eclipse linux)
Goto Forum:
  


Current Time: Sat Jun 07 12:26:07 EDT 2025

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

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

Back to the top