Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Target Platform Jar Inter-dependencies(One Jar in the Target Platform Depends on Another Jar in the Target Platform)
Target Platform Jar Inter-dependencies [message #1219459] Wed, 04 December 2013 00:20 Go to next message
Aron L is currently offline Aron L
Messages: 3
Registered: December 2013
Junior Member
Hi All,

I am using OSGi as a platform for an application that has a bundle, "B",
and a target platform, "TP". Within TP there is a folder containing two
jars, "J1" and "J2".

B calls code in J1 that tries to load a class "C" from J2. While
code in B can load C without a problem, (because J2 is correctly
listed in B's MANIFEST.MF), code in J1 cannot load C.

Further investigation shows that the ContextFinder, when called to load
C from J1, traverses the stack until reaching the
BundleClassLoader/DefaultClassLoader associated with J1, whose "domains"
field includes only J1.

Is there a way to specify in OSGi that J1 depends on J2, without
wrapping each jar in its own bundle?

Thanks,
Aron
Re: Target Platform Jar Inter-dependencies [message #1219594 is a reply to message #1219459] Wed, 04 December 2013 19:38 Go to previous message
Aron L is currently offline Aron L
Messages: 3
Registered: December 2013
Junior Member
I think I have resolved this.

A target platform contains plug-ins, not plain-old jars. So, in my example, J1 and J2 already have MANIFEST.MF files, that just need to be edited.

Thanks,
Aron
Previous Topic:Unable to load ImageIO on Macosx java 1.7
Next Topic:DynamicImport-Package fails
Goto Forum:
  


Current Time: Mon Oct 20 11:23:31 GMT 2014

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

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