Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Adding libraries to a plugin
Adding libraries to a plugin [message #28772] Thu, 08 May 2003 09:06 Go to next message
Eclipse UserFriend
Originally posted by: george.hetrick.hp.com

I'm creating a plugin, which references a number of other JAR files. I
have these files stored in a "lib/" directory immediately beneath the
project root. I've updated the plugin.xml file with lines of the form
<runtime>
...
<library name="lib/jdom.jar"/>
...
However, the plugin gets errors like
java.lang.NoClassDefFoundError: org/jdom/Element
when run in the runtime workbench. I've even tried using absolute paths,
such as
<library name="c:/BuilderPlugin/Builder Plugin/lib/jrun.jar"/>

Obviously, I need to do something more to make these JARs available. Could
someone point out what that is?
Re: Adding libraries to a plugin [message #28776 is a reply to message #28772] Thu, 08 May 2003 09:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

George Hetrick wrote:

>I'm creating a plugin, which references a number of other JAR files. I
>have these files stored in a "lib/" directory immediately beneath the
>project root. I've updated the plugin.xml file with lines of the form
> <runtime>
> ...
> <library name="lib/jdom.jar"/>
> ...
>However, the plugin gets errors like
> java.lang.NoClassDefFoundError: org/jdom/Element
>when run in the runtime workbench. I've even tried using absolute paths,
>such as
> <library name="c:/BuilderPlugin/Builder Plugin/lib/jrun.jar"/>
>
>Obviously, I need to do something more to make these JARs available. Could
>someone point out what that is?
>
The JARs have to be in the project root directory.

HTH
Dani
Re: Adding libraries to a plugin [message #28786 is a reply to message #28776] Thu, 08 May 2003 10:02 Go to previous message
Eclipse UserFriend
Originally posted by: george.hetrick.hp.com

Daniel Megert wrote:

> The JARs have to be in the project root directory.

Sure enough, moving them up a level, and changing the references, worked.

Thanks.
Previous Topic:Compile bug in Eclipse 2.1?
Next Topic:Borders like Eclipse
Goto Forum:
  


Current Time: Mon Jul 14 06:47:49 EDT 2025

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

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

Back to the top