I changed the project POM to include Bundle-NativeCode headers and to load the mapped library on bundle activation so that it can be used within an OSGi environment. This does not change the behavior of the native injection or loader within other runtime environments so other environments remain unaffected by the change.
Patch for OSGi compatibility.
Adding in Bundle-ActivationPolicy to the generated Manifest.
Changing static variables to volatile.
Great work. Thanks!
Glad to help!
Use target folder when preparing the OSGi bundle. #23