I load the adapter.so that will apply to the other
public interface CA extends Library {
CA INSTANCE = (CA) Native.loadLibrary(
(Platform.isWindows() ? "HashAdapterC" : "adapter"), CA.class);
int full_hash(byte[] data, long size, int algorithm, byte[] result, IntByReference res_size);
}
library lie flush
lib
|- adapter.so
|- hal.so
adapter.so refers to hal.so but when calling adapter.so I get an error - Can't found library hal.so
-Linux localhost.localdomain 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
-jna 3.0.9
-java version "1.7.0_79" Java(TM) SE Runtime Environment (build 1.7.0_79-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)
jar compiled with this java(1.7.0_79 64bit)
System.loadLibrary()
to load the dependency, then the JNA load will work properly. – technomage