Naveen A.N.
2012-Oct-02 12:42 UTC
[Xapian-devel] Exception in thread "main" java.lang.UnsatisfiedLinkError: no xapian_jni in java.library.path
Hello 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. regards, Naveen.A.N -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.xapian.org/pipermail/xapian-devel/attachments/20121002/d8b44e75/attachment-0001.html>
Olly Betts
2012-Oct-09 01:34 UTC
[Xapian-devel] Exception in thread "main" java.lang.UnsatisfiedLinkError: no xapian_jni in java.library.path
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