[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit

Amy Squillacote ahs at cfdrc.com
Fri Mar 7 14:15:30 EST 2008


Is your vtk.jar (the full path including the filename) in your classpath?

- Amy

Ben Sutherland wrote:
> 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
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: 
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>

-- 
Amy Squillacote                    Phone: (256) 726-4839
Computer Scientist                 Fax: (256) 726-4806
CFD Research Corporation           Web: http://www.cfdrc.com
215 Wynn Drive, Suite 501
Huntsville, AL  35805





More information about the vtkusers mailing list