java.library.path is only good for the first "layer" of libraries you
load. Any dependent libs (like libvtkCommon.so) are loaded with the
normal dynamic loading provided by the OS. So, i think there's two
options:
* Just use LD_LIBRARY_PATH env variable (or OS equivalent) and don't
bother with jav
It seems the JVM is unable to locate certain shared library in the
path you specified. Can you see whether that .so file actually exists
in that directory?
This is what the VTK wiki says about this type of errors -
http://www.vtk.org/Wiki/VTK/FAQ#When_I_try_to_run_my_program_with_Java-wrapped_VTK.
When I try to load native libraries in the System ClassLoader I get an
error of cannot open shared object file, and I don't know how to solve it.
In linux in REPL :
clojure java -Djava.library.path=/usr/local/lib/vtk-5.9/ -cp
/usr/share/java/clojure.jar:/usr/local/lib/vtk-5.9/java/vtk.jar clojur