[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit
Philip Cook
pacook at blueyonder.co.uk
Wed Jun 20 12:47:10 EDT 2001
I am attempting to use vtkSphereSource in Java. I have found that I
am forced to creat a vtkPanel object before vtkSphereSource will
work.
This code works fine:
vtkPanel renPanel = new vtkPanel();
vtkSphereSource sphere = new vtkSphereSource();
But this code:
vtkSphereSource sphere = new vtkSphereSource();
vtkPanel renPanel = new vtkPanel();
gives the following run time error:
Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
at vtk.vtkSphereSource.VTKInit(Native Method)
at vtk.vtkObject.<init>(vtkObject.java:97)
at vtk.vtkProcessObject.<init>(vtkProcessObject.java:78)
at vtk.vtkSource.<init>(vtkSource.java:82)
at vtk.vtkPolyDataSource.<init>(vtkPolyDataSource.java:30)
at vtk.vtkSphereSource.<init>(vtkSphereSource.java:86)
at SphFuncGlyph.<init>(SphFuncGlyph.java:28)
[ Line 28 of SphFuncGlyph.java is the line vtkSphereSource sphere
= new vtkSphereSource(); ]
Why does the vtkPanel matter? How can I create vtk objects
without having to make a vtkPanel?
Thanks,
Phil Cook
More information about the vtkusers
mailing list