I am trying to run a java application that interfaces with native code. So i am using JNI, and the IDE is Eclipse.
I copied the .so files to /lib and to /usr/lib folder. But when running the java application from Eclipse it gives the ‘Unsatisfied link error’, . But in Linux the same this is running cool.
P.S.
try to place your .so file in current directory and start your application as:
j9 -Djava.library.path=. <your_application_class>
If this does not work then check what you call in
System.loadLibrary(“name_of_so_file_without_dot_so”);
Note: let’s say you load System.loadLibrary(“my_library”);
then compiled file should have the name: libmy_library.so