[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit

Marie Bonhoure mariebonhoure at hotmail.com
Mon Jul 9 03:45:56 EDT 2007


Hi,

I'm using vtk with java (Eclipse) and I'm trying to run the following code :

package ex;

import vtk.vtkDICOMImageReader;
import vtk.vtkImageViewer2;

public class Test {	public static void main(String[] args) {
	vtkDICOMImageReader reader = new vtkDICOMImageReader();
	System.out.println("après new vtkDICOMImageReader()");
	vtkImageViewer2 viewer = new vtkImageViewer2();
	viewer.SetInput(reader.GetOutput());
	reader.SetDirectoryName("C:\\DATA\\s0");
	reader.Update();
	int VolData_Images = viewer.GetWholeZMax();

for (int i = 0; i<=  VolData_Images; i++) {
	viewer.SetZSlice(i);
	viewer.GetRenderer().ResetCameraClippingRange();
	viewer.Render();
}
	}
}


I get the following exception, which I don't understand because all my paths 
are precised (vtk + java) :

Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
	at vtk.vtkDICOMImageReader.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.vtkImageReader2.<init>(vtkImageReader2.java:234)
	at vtk.vtkDICOMImageReader.<init>(vtkDICOMImageReader.java:90)
	at ex.Test.main(Test.java:11)

Any idea ??

Thanks in advance.


Regards,


Marie Bonhoure
Ingénieur biomédical
Service de Neurochirurgie
HIA du Val de Grace
Tél bureau: 00 33 (0)1 40 51 4355
Tél secrétariat: 00 33 (0)1 40 51 4306
Fax: 00 33 (0)1 40 51 4332

_________________________________________________________________
Découvrez le Blog heroic Fantaisy d'Eragon! 
http://eragon-heroic-fantasy.spaces.live.com/




More information about the vtkusers mailing list