Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Eclipse doesn't recognize a JAR file on the build path at runtime
Eclipse doesn't recognize a JAR file on the build path at runtime [message #157425] Sun, 16 November 2003 05:11 Go to next message
Eclipse UserFriend
Originally posted by: andrewip.shaw.ca

Hi there,

I seem to be encountering a weird problem. When executing my plugin as a
runtime workbench using Eclipse 2.1.1, I encounter the following error when
I attempt to open up the editor component of my plugin:

"Unable to instantiate editor: ID_TapEditor
java.lang.NoClassDefFoundError:org/jdom/JDOMException"

I recognize the class it isn't finding - it's from the JDOM library that I'm
using in my plugin. However, I've already included the JDOM jar file as
part of the Java Build Path for my plugin. This presumably adds the jar
file to my classpath at build time and at run time. I've even tried
manually adding the jar file to my classpath as a program argument at
runtime, but this error still keeps appearing. Can anybody help shed some
light on this matter?

Thanks in advance,
Andrew Ip
Re: Eclipse doesn't recognize a JAR file on the build path at runtime [message #157440 is a reply to message #157425] Sun, 16 November 2003 12:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Andrew Ip wrote:

>Hi there,
>
>I seem to be encountering a weird problem. When executing my plugin as a
>runtime workbench using Eclipse 2.1.1, I encounter the following error when
>I attempt to open up the editor component of my plugin:
>
> "Unable to instantiate editor: ID_TapEditor
>java.lang.NoClassDefFoundError:org/jdom/JDOMException"
>
>I recognize the class it isn't finding - it's from the JDOM library that I'm
>using in my plugin. However, I've already included the JDOM jar file as
>part of the Java Build Path for my plugin. This presumably adds the jar
>file to my classpath at build time and at run time. I've even tried
>manually adding the jar file to my classpath as a program argument at
>runtime, but this error still keeps appearing. Can anybody help shed some
>light on this matter?
>
>
Sure. The build path is for development time. The real scope of your
plug-in is exactly defined as the JARs that are within your plug-in plus
the plug-ins defined as required ones in your plugin.xml. This means you
either have to include the JDOM library to your plug-in or require (via
plugin.xml) a plug-in that already contains this library.

Dani

>Thanks in advance,
>Andrew Ip
>
>
>
>
Re: Eclipse doesn't recognize a JAR file on the build path at runtime [message #157487 is a reply to message #157440] Sun, 16 November 2003 17:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: andrewip.shaw.ca

Thanks for the advice, Dani. The error is now gone. I never knew that we
had to do that before. I guess you learn something new everyday. :)

Many thanks again,
Andrew
Re: Eclipse doesn't recognize a JAR file on the build path at runtime [message #157715 is a reply to message #157487] Mon, 17 November 2003 14:53 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

Read this on how to develop plugins within Eclipse. From it you will
understand why you needed to do what you needed to do. And they may be
other things you need to do too.

See for article on how plugins work:

http://www.eclipse.org/articles/Article-Plug-in-architecture /plugin_architecture.html

See for developing plugins within Eclipse:

http://www.eclipse.org/articles/Article-PDE-does-plugins/PDE -intro.html

--
Thanks, Rich Kulp

Previous Topic:Using a library
Next Topic:FileDialog bug ?
Goto Forum:
  


Current Time: Fri Dec 27 02:27:02 GMT 2024

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

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

Back to the top