[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit

Ben Sutherland ben at isc.tamu.edu
Fri Mar 7 14:09:30 EST 2008


When trying to run program "hsnbrg" (which uses vtk) on linux, I  
receive the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
         at vtk.vtkStructuredPoints.VTKInit(Native Method)
         at vtk.vtkObject.<init>(vtkObject.java:94)
         at vtk.vtkDataObject.<init>(vtkDataObject.java:418)
         at vtk.vtkDataSet.<init>(vtkDataSet.java:158)
         at vtk.vtkImageData.<init>(vtkImageData.java:322)
         at vtk.vtkStructuredPoints.<init>(vtkStructuredPoints.java:22)
         at hsnbrg.<init>(hsnbrg.java:67)
         at hsnbrg.main(hsnbrg.java:193)

As per similar questions, I have wrapped my loads:
      static {
         System.loadLibrary("vtkCommonJava");
         System.loadLibrary("vtkCommonJava");
         System.loadLibrary("vtkFilteringJava");
         System.loadLibrary("vtkIOJava");
         System.loadLibrary("vtkImagingJava");
         System.loadLibrary("vtkGraphicsJava");
         System.loadLibrary("vtkRenderingJava");
     }

and I've set my path:
LD_LIBRARY_PATH=/<VTK_loc>/lib/:/<VTK_loc>/bin/:/usr/lib64/jvm/java/ 
jre/lib/amd64/xawt

Any suggestions?
Thanks,
Ben






More information about the vtkusers mailing list