[vtkusers] problems running a vtk java bindings example

Henry Blanco henry.blanco at cbiomed.cu
Mon Oct 26 11:48:58 EDT 2015


Hello guys, I have set up and compiled VTK through cmake on a 64-bits
Ubuntu 14.04, just to get VTK Java bindings, but I have failed to run a
simple "Cone.java" example. Specifically, when I try to execute the
statement:

System.loadLibrary("vtkCommonJava");

The compiler throws the following error: 

Exception in thread "main" java.lang.UnsatisfiedLinkError: no
vtkCommonJava in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
	at java.lang.Runtime.loadLibrary0(Runtime.java:849)
	at java.lang.System.loadLibrary(System.java:1088)
	at Cone.<clinit>(Cone.java:17)

--------------------------------------
To specify what my problem is, please, read these comments:

1- The VTK compilation process produced the following .jar files (both
placed at /usr/local/ directory):
	vtk-6.1.jar 
	vtk-6.1-natives-Linux-x86_64.jar

2- The library files "vtkCommonJava.o" is not among those produced by
the compilation process.
3- The most similar library file to "vtkCommonJava" that I have found is
"libvtkCommonCoreJava.o", packed into the jar file
"vtk-6.1-natives-Linux-x86_64.jar". I have included this file into the
"Java Build Path" of my Eclipse IDE, as well as the jar file
"vtk-6.1.jar", but still the program fails to run.

I will appreciate any suggestions on what is missing here to run the
java example. Thanks in advance.

Henry 



More information about the vtkusers mailing list