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

Reply via email to