Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Exposing 3rd party jars from a plugin
Exposing 3rd party jars from a plugin [message #126383] Tue, 24 February 2009 20:50 Go to next message
Boris Pelakh is currently offline Boris PelakhFriend
Messages: 4
Registered: July 2009
Junior Member
I have a OSGi plugin that uses several 3rd party utility jars, which are
included in the Bundle-ClassPath of the plugin. I want dependent plugins
(specifically fragments) to be able to see the classes declared in those
jars. I added those packages to the Export-Package: section of the host
plugin, and Eclipse will see that they are exported, and add them to the
Import-Package of other plugins. However, if I try to use these exported
packages in code, it fails to build. What am I missing?

Thanks,
Boris
Re: Exposing 3rd party jars from a plugin [message #126534 is a reply to message #126383] Fri, 27 February 2009 14:53 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

If the packages are available in your host plugin, your fragments
shouldn't need Import-Package ... they should see the "classpath space"
of the host plugin for free.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:How to upate an embedded jre
Next Topic:Eclipse Equinox Portal Support
Goto Forum:
  


Current Time: Thu Sep 19 17:29:22 GMT 2024

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

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

Back to the top