[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit ... SOLVED

John L. Papp jpapp at craft-tech.com
Wed Aug 2 14:57:02 EDT 2006


Just so this goes into the KitWare searchable archives for future reference.

If you get any error like the following...

Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
       at vtk.vtkStructuredGrid.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.vtkStructuredGrid.<init>(vtkStructuredGrid.java:202)
       at SimpleVTK.<init>(SimpleVTK.java:20)
       at SimpleVTK.main(SimpleVTK.java:54)

Make sure you instantiate the vtkPanel object BEFORE you instantiate 
anything else as it is this class object that loads all the appropriate 
libraries.  Otherwise, you will get the error.

Thanks to Bernard Giroux for the fix.

John


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.10.5/405 - Release Date: 8/1/2006




More information about the vtkusers mailing list