Eclipse doesn't recognize a JAR file on the build path at runtime [message #157425] |
Sun, 16 November 2003 05:11 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
>
>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02863 seconds