Has anybody successfully ran any Java code using VTK 5.4.2 under OS X?
I've installed VTK 5.4.2 from source, configured for Java and shared libraries. The vtk.jar file is generated as expected, and the Java program compiles correctly. However, when executing, as soon as the wrapper classes call the underlying *.dylib libraries, it appears that only the first library loads, and its dependencies are not found even if they are in the same directory as the first library loaded.
When running using Netbeans, the error I am getting is:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/java/libvtkFilteringJava.dylib: Library not loaded: libvtkCommonJava.5.4.dylib
Referenced from: /usr/lib/java/libvtkFilteringJava.dylib Reason: image not found at java.lang.ClassLoader$NativeLibrary.load(Native Method)
Any ideas?
Thanks- Carlos