[vtkusers] UnsatisfiedLinkError: VTKInit
Julie Stromer
jnstrome at ucalgary.ca
Thu Jun 5 17:29:32 EDT 2003
Hi,
I am trying to get VTK and Java3D to "communicate" via conversion of
Shape3D geometries and vtkPolyData objects. It all compiles nicely and
I am more than certain that the libraries are linked properly, but I get
the ever-familiar UnsatisfiedLinkError: VTKInit.
Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
at vtk.vtkPolyData.VTKInit(Native Method)
at vtk.vtkObject.<init>(vtkObject.java:98)
at vtk.vtkDataObject.<init>(vtkDataObject.java:286)
at vtk.vtkDataSet.<init>(vtkDataSet.java:154)
at vtk.vtkPointSet.<init>(vtkPointSet.java:86)
at vtk.vtkPolyData.<init>(vtkPolyData.java:262)
at Cone3.main(Cone3.java:70)
I know that the common solution to this problem is to statically link in
the libraries, such as I did:
static {
System.loadLibrary("vtkCommonJava");
System.loadLibrary("vtkPatentedJava");
System.loadLibrary("vtkParallelJava");
System.loadLibrary("vtkHybridJava");
System.loadLibrary("vtkFilteringJava");
System.loadLibrary("vtkIOJava");
System.loadLibrary("vtkImagingJava");
System.loadLibrary("vtkGraphicsJava");
System.loadLibrary("vtkRenderingJava");
}
I know this is a problem that surfaced with vtk4.0 no longer having the
all encompassing "vtkJava" library. (See, I've done my homework).
Now, does ANYONE have a viable solution or explination for this???
Thanks in advance,
Julie
jnstrome at ucalgary.ca
More information about the vtkusers
mailing list