yes, and maybe read this blog [1], especially the comments.
It drills down to the drawbacks of using Native-Code in OSGi.
Make sure you don't have to much dependencies :)

regards, Achim

[1] -
http://robertvarttinen.blogspot.de/2008/12/bundle-nativecode-in-osgi-manifest.html


2014-04-03 16:31 GMT+02:00 Jean-Baptiste Onofré <[email protected]>:

> I guess that Achim mentioned accessing directly to the bundle jar.
>
> Something like:
>
> static {
>     try {
>         System.loadLibrary("crypt"); // used for tests. This library in
> classpath only
>     } catch (UnsatisfiedLinkError e) {
>         try {
>             NativeUtils.loadLibraryFromJar("/natives/crypt.dll"); //
> during runtime. .DLL within .JAR
>         } catch (IOException e1) {
>             throw new RuntimeException(e1);
>
>         }
>     }
> }
>
> On 04/03/2014 04:25 PM, Philipp Hoenisch wrote:
>
>> Can you explain that a bit more, i mean. how do I load a native library
>> via
>> the bundle loader?
>>
>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.
>> com/Native-library-and-System-load-tp4032562p4032568.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 

Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>

Software Architect / Project Manager / Scrum Master

Reply via email to