|
Re: Problem exporting plugins from PDE [message #89162 is a reply to message #89148] |
Fri, 01 June 2007 06:28 |
Danail Nachev Messages: 110 Registered: July 2009 |
Senior Member |
|
|
Hi,
If you have this package <foo> in one of your Import-Package clauses,
then you must have it in one Export-Package. I wonder what is the reason
that this jars are not made bundles. If your jars are in the app
classpath, you should export the packages as system packages. These are
packages exported by system.bundle (or org.eclipse.osgi, these are the
same thing). The best way to do it is via a framework extension bundle.
This is fragment, whose Fragment-Host is the system.bundle. It should
not contain any classes and will only export the package(s) you are
interested in.
If there isn't any particular reason that the few jars cannot be
converted as bundles, I strongly encourage you to spend some time
converting to bundles. After all this what OSGi is made for:)
Danail Nachev
Subbarao Meduri wrote:
> Greetings,
>
> I have a Equinox application that loads a few Jars on the system classpath (e.g., via "-classpath"
> option), and my application uses "osgi.parentClassLoader=app" so that these classes are visible to
> my plugins (via Equinox's default parent-first boot delegation mechanism). While this works at
> runtime (when I handcraft a bundle), I am having trouble trying to create(export) the bundle from
> PDE - the wizard produces several errors (and rightly so!) "The import <foo> cannot be resolved".
>
> How can I configure PDE to indicate the Jars loading via system classpath, so that it can
> successfully generate/export a valid bundle Jar ?
>
> Regards,
> Subbarao
>
>
|
|
|
Re: Problem exporting plugins from PDE [message #89191 is a reply to message #89148] |
Fri, 01 June 2007 08:01 |
Eclipse User |
|
|
|
Originally posted by: alex_blewitt.yahoo.com
The answer is not to have Jars on the system classpath :-)
You can convert the Jars to bundles yourself, or you can use Peter's '<a href="http://www.aqute.biz/Code/Bnd">bnd</a>' tool which will do the same. Then everything's a bundle, and you don't need to worry any more.
NB You can also use a bundle as an ordinary Jar, so they can co-exist.
Alex.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04056 seconds