[Xapian-devel] Exception in thread "main" java.lang.UnsatisfiedLinkError: no xapian_jni in java.library.path

Olly Betts olly at survex.com
Tue Oct 9 02:34:50 BST 2012


On Tue, Oct 02, 2012 at 06:12:47PM +0530, Naveen A.N. wrote:
> I am trying to use the java binding for xapian .
> 
> I am using ubuntu i have compiled the java binding and i got .so and .jar
> file in build directory.
> 
> i tried to compiled the sample program from eclipse i get this exception
> 
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no xapian_jni in
> java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
> at java.lang.Runtime.loadLibrary0(Runtime.java:840)
> at java.lang.System.loadLibrary(System.java:1047)
> at org.xapian.XapianJNI.<clinit>(XapianJNI.java:44)
> at org.xapian.WritableDatabase.<init>(WritableDatabase.java:42)
> at SimpleIndex.main(SimpleIndex.java:41)
> 
> Where do i need to copy the .so file and i am using openjdk.

This is documented in the README:

http://trac.xapian.org/browser/branches/1.2/xapian-bindings/java/README#L18

Cheers,
    Olly



More information about the Xapian-devel mailing list