[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit
Bernard Giroux
giroux at geo.polymtl.ca
Sun Feb 4 13:43:47 EST 2007
Bartlomiej Wilkowski a écrit :
> Dear VTk users!
>
> Please help me with the error
>
> java.lang.UnsatisfiedLinkError: VTKInit
Make sure you load the vtk library before creating your vtk objects.
// in the static contructor we load in the native code
// The libraries must be in your path to work
static {
System.loadLibrary("vtkCommonJava");
System.loadLibrary("vtkFilteringJava");
System.loadLibrary("vtkIOJava");
System.loadLibrary("vtkImagingJava");
System.loadLibrary("vtkGraphicsJava");
System.loadLibrary("vtkRenderingJava");
}
>
> cause this starts to be really big pain in the... neck. I made quite big
> application, I use a lot of vtk classes and it is working. I am using
> e.g. vtkImageReader, vtkImagePlaneWidget, vtkImageReslice and many more.
> Unfortunately when I try to create vtkPNGReader or any other reader I
> got this error. The full stacktrace is:
>
> Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError:
> VTKInit
>
> at vtk.vtkImageWriter.VTKInit(
>
> _Native Method_)
>
> at vtk.vtkObject.<init>(
>
> _vtkObject.java:90_)
>
> at vtk.vtkAlgorithm.<init>(
>
> _vtkAlgorithm.java:246_)
>
> at vtk.vtkImageAlgorithm.<init>(
>
> _vtkImageAlgorithm.java:58_)
>
> at vtk.vtkImageWriter.<init>(
>
> _vtkImageWriter.java:58_)
>
> at main.MedicalEditor.<init>(
>
> _MedicalEditor.java:121_)
>
> at main.MedicalEditor$1.run(
>
> _MedicalEditor.java:150_)
>
> at java.awt.event.InvocationEvent.dispatch(Unknown Source)
>
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>
> at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>
> at java.awt.EventDispatchThread.run(Unknown Source)
>
> please help me as I really didnt find anything in vtk mailgroup and
> anywhere...:(
>
> thx in advance!
>
> Bartek
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
--
Bernard Giroux, ing., Ph.D.
Associé de recherche
http://geo.polymtl.ca/~giroux
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3253 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070204/4421dca5/attachment.bin>
More information about the vtkusers
mailing list