I have two Linux boxes. On one (LinuxBox1), I built VLC from source.
My VLCJ java application adds varous paths on which to look for libvlc.so using the NativeLibrary.addSearchPath() method, after which it calls the Native.loadLibrary().
My application runs just fine on LinuxBox1. On LinuxBox2, however, I have only the copied libvlc.so and libvlccore.so files along with my java application. When I attempt to run on LinuxBox2 I repeatedly get the VLCJ error Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load library 'libvlc': ...stack trace...
I've played around extensively with the LD_LIBRARY_PATH variable, to point to the .so's in various locations, I've passed the -Djna.library.path=[path] args to my java app, I've even added multiple paths to within my app so that it will look in multiple locations. With every attempt, however, I get the same exception. Interestingly enough I've played around on LinuxBox1 and tried each of the above mentioned techniques with success on LinuxBox1.
Is the fact that i built the binaries on LinuxBox1 have something to do with the reason LinuxBox2 cannot find the appropriate libraries? I have moderate experience with linux development in general, but little with JNA. I'm at a dead end.
Please advise.
Thanks