Menu

#79 java.lang.UnsatisfiedLinkError: no lemur_jni in java.library.path

v1.x
closed
None
1
2019-12-11
2017-02-19
Rahman
No

Hi,
I am unable to use the Lemur Java API using Eclipse. I have imported all the lemur.jar in my application.
When I test a a simple indexing API (IndexEnvironment) it says:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no lemur_jni in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at lemurproject.indri.indriJNI.<clinit>(indriJNI.java:98)
at lemurproject.indri.IndexEnvironment.<init>(IndexEnvironment.java:37)
at testing.main(testing.java:13)
Kindle let me know as soon as possible of how to resolve it.
Also I would appreciate if you could give me pointers on using the Java API. I dont seem to find any single source of good documentation.</init></clinit>

Discussion

  • David Fisher

    David Fisher - 2017-02-21

    in the "run configuration" for you project, you need to add the VM argument:
    -Djava.library.path=/path/to/jni/library

    where the jni library path is the full installed path to of the lemur_jni dynamic library.

     

    Last edit: David Fisher 2017-02-21
  • David Fisher

    David Fisher - 2017-02-21
    • status: open --> pending
    • assigned_to: David Fisher
     
  • David Fisher

    David Fisher - 2019-12-11
    • status: pending --> closed
     

Log in to post a comment.