• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse plugin hell - Unhandled event loop exception

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I�m writing a Eclipse plugin, and it needs a XML parser... the problem: whenever I try to use JDOM or Xerces, I get the same error:

(snip)

!ENTRY org.eclipse.ui 4 4 Sep 10, 2004 03:32:42.515
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 Sep 10, 2004 03:32:42.515
!MESSAGE org/apache/xerces/parsers/DOMParser
!STACK 0
java.lang.NoClassDefFoundError: org/apache/xerces/parsers/DOMParser

(snip)

That�s one from using Xerces. If I try to use JDOM, the second message is the only diff (org/jdom/Component, for example). But, if I try using DOM4J... well, it just works.


Does anyone know anything about it?

Regards.
[ September 10, 2004: Message edited by: Arthur Casals ]
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Arthur,

Welcome to JavaRanch!

Well, you haven't explained to us what you're doing to bring the .jar files for these other parsers into Eclipse. Remember that Eclipse doesn't look at your CLASSPATH. The standard method is to create a plugin whose purpose is just to export the .jar, and then have the plugin you're writing declare that it depends on that first plugin. If you're seeing these errors in the runtime workbench, be sure that you're exporting both of these plugins to the runtime workbench environment.
 
Skool. Stay in. Smartness. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic