[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit
    Randy Heiland 
    heiland at ncsa.uiuc.edu
       
    Wed Jun 20 11:57:12 EDT 2001
    
    
  
On Jun 20,  4:47pm, Philip Cook wrote:
> Subject: [vtkusers] java.lang.UnsatisfiedLinkError: VTKInit
> 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
 ...
>
> Why does the vtkPanel matter? How can I create vtk objects
> without having to make a vtkPanel?
>
vtkPanel makes the following (required) call:
  static { System.loadLibrary("vtkJava"); }
Try inserting this into your pgm (and not calling vtkPanel) to see if that's
sufficient (haven't tried it myself).
--Randy
    
    
More information about the vtkusers
mailing list