Java program Opencv unsatisfiedlinkerror
I have a java application designed to run in the Linux environment, developed using Opencv and Eclipse - Ubuntu 14.04. It runs fine inside Eclipse and produces a .jar on export. The program .jar works perfectly on the system where the opencv is installed.
java -Dpath.java.library="/home/me" -jar program.jar
The library where opencv is installed has all the so files and links to so files in place and when I do a ldd on the libopencv_java310.so it displays all the associated so files/links are aokay.
However on the machine where opencv is not installed:
I have been able to carry the libs over and create all the links using the ln command however I am still getting java.lang.unsatifiedlinkerror: /my/lib/libopencv_java310.so: libopencv_core.so.3.1: cannot open shared object file: No such file or directory
I did an ldd on libopencv_java310.so and the result is libopencv_core.so.3.1 => not found - one of several not founds in the opencv library.
The link libopencv_core.so.3.1 is in the directory along with all the other correct link files and their corresponding so files. What am I missing here? I know I need get the libopencv_java310.so to find the links but I don't know how.
The end point of this exercise is to make either a self contained executable, .jar or a combination of lib files and .jar to be distributed to end user in the linux environment.