Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Bundle-NativeCode explanation.
Bundle-NativeCode explanation. [message #102747] Fri, 07 December 2007 15:29
Mickael GAUVIN is currently offline Mickael GAUVINFriend
Messages: 38
Registered: July 2009
Member
Hello,

I have some problems to use my library. I have two bundles and one library:

BundleA (it is the library loader and it requires BundleB)
|--ClassA
|-- native nativeMethodA


BundleB
|--ClassB
|-- native nativeMethodB


MyLib.dll
|--WrappedClassA
|-- nativeMethodA
|--WrappedClassB
|-- nativeMethodB

Currently I'm not using the Bundle-NativeCode entry. When I call
"nativeMethodA" from the bundle A, I have no problem. But when I'm
trying to call "nativeMethodB" I have this error :
java.lang.UnsatisfiedLinkError: nativeMethodB .
At the beginning I had the ClassA and ClassB in the same bundle A and no
problem of UnsatisfiedLinkError that's why I'm wondering about the
Bundle-NativeCode utility and how to use it in order to successfully
call my "nativeMethodB" method.

It seems that the BundleB doesn't know that my library has been loaded
(may be a BundleClassLoader problem ?)

Thanks you in advance for any response you will give to me.

Mickael.
Previous Topic:Equinox on Websphere and context updates
Next Topic:OSGi Service Platform 4.0 4.1 ?
Goto Forum:
  


Current Time: Mon Nov 24 04:10:23 GMT 2014

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

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