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>
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