A DESCRIPTION OF THE PROBLEM :
I am setting the `java.library.path` on the command-line yet `System.loadLibrary` does not honor it
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
I tried to load a JNI library using System.loadLibrary method call. I set `java.library.path` to the location where the library could be found but `System.loadLibrary` does not search for the library in that path. see this log:
[mark.App.main()] e.hnswlib.benchmark.PropertyLogger : java.library.path: <HDF_HOME>/lib
but i still get:
java.lang.UnsatisfiedLinkError: no hdf5_java in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2458)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:916)
at java.base/java.lang.System.loadLibrary(System.java:2059)
at hdf.hdf5lib.H5.loadH5Lib(H5.java:362)
at hdf.hdf5lib.H5.<clinit>(H5.java:297)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
be able to load the library
ACTUAL -
java.lang.UnsatisfiedLinkError: no hdf5_java in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2458)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:916)
at java.base/java.lang.System.loadLibrary(System.java:2059)
at hdf.hdf5lib.H5.loadH5Lib(H5.java:362)
at hdf.hdf5lib.H5.<clinit>(H5.java:297)
I am setting the `java.library.path` on the command-line yet `System.loadLibrary` does not honor it
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
I tried to load a JNI library using System.loadLibrary method call. I set `java.library.path` to the location where the library could be found but `System.loadLibrary` does not search for the library in that path. see this log:
[mark.App.main()] e.hnswlib.benchmark.PropertyLogger : java.library.path: <HDF_HOME>/lib
but i still get:
java.lang.UnsatisfiedLinkError: no hdf5_java in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2458)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:916)
at java.base/java.lang.System.loadLibrary(System.java:2059)
at hdf.hdf5lib.H5.loadH5Lib(H5.java:362)
at hdf.hdf5lib.H5.<clinit>(H5.java:297)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
be able to load the library
ACTUAL -
java.lang.UnsatisfiedLinkError: no hdf5_java in java.library.path: /usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2458)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:916)
at java.base/java.lang.System.loadLibrary(System.java:2059)
at hdf.hdf5lib.H5.loadH5Lib(H5.java:362)
at hdf.hdf5lib.H5.<clinit>(H5.java:297)