Re: [sleuthkit-developers] Calling Sleuth Kit From JMS
Brought to you by:
carrier
From: Stuart M. <st...@ap...> - 2014-11-12 22:42:03
|
The error printed is not that your java code can find libtsk_jni.so, but that THAT library is linked against libtsk.so, which your Java VM cannot find. You need to locate the path to the original libtsk.so, let's say its in /usr/local/lib. Then you two options: 1 extend LD_LIBRARY_PATH to include /usr/local/lib 2 Add /usr/local/lib to the VM's own shared library search path, like this java -Djava.library.path=/usr/local/lib -classpath ..... If you have jni code with external dependenices, like you do in this case, it might be better to build the libtsk_jni.so file such that the tsk calls it makes are linked in STATICALLY, then the issue you are having would disappear. I do this in my own Java/JNI binding to sleuthkit. Cheers Stuart |