[vtkusers] vtkCubeAxesActor2D error in Java

Phil Cook p.cook at cs.ucl.ac.uk
Thu Jan 30 16:08:01 EST 2003


> Generally "java.lang.UnsatisfiedLinkError: VTKInit" error indicates 
> that
> your program is not loading some of the dynamic (shared) libraries. You
> can trace it by looking up from which dynamic library offending native
> class is coming from. In this case the native class is
> 'vtkCubeAxesActor2D'. Easy way to check it up is to go to
> http://www.vtk.org/doc/nightly/html/classes.html
> and look up 'vtkCubeAxesActor2D'
> (http://www.vtk.org/doc/nightly/html/classvtkCubeAxesActor2D.html)
> Now scroll down to see 'CVS logs', there you can see that class
> ‘vtkCubeAxesActor2D’ is in module 'Hybrid'. This suggests that you are
> missing the Hybrid dynamic library. Load the Hybrid library by adding
> following static code (in the area where you declare member variables 
> for
> you class).
>
>   static {
>     System.loadLibrary("vtkHybridJava");
>   }
>
> Hope this helps,
>
> Jarek

Be aware that the hybrid code is not built by default, so if you build 
VTK from source, you will need to set the cmake option VTK_USE_HYBRID 
to ON.


Phil



More information about the vtkusers mailing list