How to bundle a native library and a JNI library inside a JAR?
Posted
by Alex B
on Stack Overflow
See other posts from Stack Overflow
or by Alex B
Published on 2010-05-30T03:22:06Z
Indexed on
2010/05/30
3:22 UTC
Read the original article
Hit count: 362
The library in question is Tokyo Cabinet.
I want is to have the native library, JNI library, and all Java API classes in one JAR file to avoid redistribution headaches.
There seems to be an attempt at this at GitHub, but
- It does not include the actual native library, only JNI library.
- It doesn't work (for me): when I use this JAR, the JVM does not even seem to find the JNI library which is packaged inside the JAR:
java.lang.UnsatisfiedLinkError: no jtokyocabinet in java.library.path (tokyo_cabinet.clj:19)
© Stack Overflow or respective owner