Skip to main content



      Home
Home » Eclipse Projects » Equinox » Problems with import and export of libraries
Problems with import and export of libraries [message #676460] Sat, 04 June 2011 11:01 Go to next message
Eclipse UserFriend
Hello,

I have a problem with the usage of a library in OSGi which should be accessed by different bundles. I included the jars in one bundle locally and added them explicit to the bundle classpath. Then I added the packages I need in other bundles to the Export-Package entry in the bundle. In the other bundles I added this packages to the Import-Package section in the manifest.
Unfortunately the imports of the packages can't be resolved from the bundles that use the Import-Package.

Any ideas what I'm doing wrong?
Re: Problems with import and export of libraries [message #676760 is a reply to message #676460] Mon, 06 June 2011 08:42 Go to previous messageGo to next message
Eclipse UserFriend
I suspect when you state "the imports of the packages can't be resolved" you are talking about within the Java editor when compiling your code. If that is the case this is an old bug in PDE that has finally been fixed in 3.7. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=147831 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=157375

HTH

Tom
Re: Problems with import and export of libraries [message #676803 is a reply to message #676760] Mon, 06 June 2011 11:06 Go to previous message
Eclipse UserFriend
Thanks for the response.
My problem is solved now, by creating the exporting bundle as "Plugin-Project from Existing Jars" and now the imports can be resolved.

[Updated on: Tue, 07 June 2011 06:40] by Moderator

Previous Topic:CompositeBundles in equinox 3.7
Next Topic:Setup target platform for equinox
Goto Forum:
  


Current Time: Tue Nov 04 22:30:54 EST 2025

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

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

Back to the top