<div>Hi all , I just started with ITK lib (through java wrapper on Ubuntu 11.10) and my first try hasn&#39;t been very good, I&#39;ve installed the ibinsighttoolkit3-java package, some dependencies and the examples package, so far everything went fine in the installation but when I tried to load one example (DicomSliceRead.java) I found  some missing classes errors.</div>

<div><br></div><div>itkImageFileReaderUS2_Pointer </div><div>itkImageFileWriterUC2_Pointer</div><div>itkRescaleIntensityImageFilterUS2UC2_Pointer</div><div><br></div><div><br></div><div>Well all clases realated to itk really weren&#39;t recognized ..</div>

<div><br></div><div>I&#39;ve tried to run it through netbeans, eclipse and command line , seems that the jar file (/usr/share/java/InsightToolkit.jar) provided by the ubuntu package doesn&#39;t have this classes, am I right? </div>

<div>How can I run the examples using the official packages?</div><div>do someone got the same problem?</div><div><br></div><div>I&#39;m currently building the sources of the new itk version 4 to see what happens, but I think would be better to start messing using the ubuntu&#39;s official package.</div>

<div><br></div><div><br></div><div>The whole example is:</div><div><br></div><div>/**</div><div> * Example on the use of DicomImageIO for reading a single DICOM slice, rescale</div><div> * the intensities and save it in a different file format.</div>

<div> *</div><div> */</div><div><br></div><div>import InsightToolkit.*;</div><div><br></div><div>public class DicomSliceRead</div><div>{</div><div>  public static void main( String argv[] )</div><div>  {</div><div>    System.out.println(&quot;DicomSliceRead Example&quot;);</div>

<div><br></div><div>    itkImageFileReaderUS2_Pointer reader = itkImageFileReaderUS2.itkImageFileReaderUS2_New();</div><div>    itkImageFileWriterUC2_Pointer writer = itkImageFileWriterUC2.itkImageFileWriterUC2_New();</div>

<div><br></div><div>    itkRescaleIntensityImageFilterUS2UC2_Pointer filter = itkRescaleIntensityImageFilterUS2UC2.itkRescaleIntensityImageFilterUS2UC2_New();</div><div><br></div><div>    filter.SetInput( reader.GetOutput() );</div>

<div>    writer.SetInput( filter.GetOutput() );</div><div><br></div><div>    itkDicomImageIO_Pointer dicomIO = itkDicomImageIO.itkDicomImageIO_New();</div><div>    </div><div>    reader.SetImageIO( dicomIO.GetPointer() );</div>

<div>    </div><div>    filter.SetOutputMinimum( (short)0 );</div><div>    filter.SetOutputMaximum( (short) 255);</div><div><br></div><div>    reader.SetFileName( argv[0] );</div><div>    writer.SetFileName( argv[1] );</div>

<div><br></div><div>    writer.Update();</div><div>  }</div><div><br></div><div>}</div><div><br></div><div>Thanks in advance.</div>