[Insight-users] ITK and Java

Oliveira Marcelo marceloitk at yahoo.com.br
Thu Sep 9 10:44:30 EDT 2004


Hi user´s !!!
 
I´ve been trying to compile my first example with ITK (1.8) and Java (j2sdk1.4.2_05) on Win2K. 
 
my paths are:
 
ITK source - C:\Insight
ITK Bin - C:\Insight_bin
 
INCLUDE ( in system variable )
.;c:\VTK_bin\java\vtk.jar;
C:\VTK_bin\bin\debug\;
C:\Insight_bin\Wrapping\CSwig\Java\Debug\InsightToolkit.jar;
C:\Insight_bin\Wrapping\CSwig\Java\Debug\InsightToolkit\;
C:\Insight_bin\Wrapping\CSwig\Java\InsightToolkit;
C:\Insight_bin\Wrapping\CSwig\Java\Debug\InsightToolkit\;
C:\j2sdk1.4.2_05\jre\bin
 
 
LIB ( in system variable )
.;c:\VTK_bin\java\vtk.jar;
C:\VTK_bin\bin\debug\;
C:\Insight_bin\Wrapping\CSwig\Java\Debug\InsightToolkit.jar;
C:\Insight_bin\Wrapping\CSwig\Java\Debug\InsightToolkit\;
C:\Insight_bin\Wrapping\CSwig\Java\InsightToolkit;
C:\Insight_bin\Wrapping\CSwig\Java\Debug\InsightToolkit\;
C:\j2sdk1.4.2_05\jre\bin
 
PATH ( in system variable )
C:\j2sdk1.4.2_05bin\;
.;C:\VTK_bin\java\vtk.jar;
C:\VTK_bin\bin\debug\;
C:\Insight_bin\Wrapping\CSwig\Java\Debug\InsightToolkit.jar;
C:\Insight_bin\Wrapping\CSwig\Java\Debug\InsightToolkit\;
C:\Insight_bin\Wrapping\CSwig\Java\InsightToolkit;
C:\Insight_bin\Wrapping\CSwig\Java\Debug\InsightToolkit\;
C:\j2sdk1.4.2_05\jre\bin
 
My example:
 
//*********************************************************************************
import InsightToolkit.*;
public class TestItk{

  public static void main(String argv[])
  {
    
       / /if i remove this line below the program compile OK
       ImageFileReaderF2 reader = new ImageFileReaderF2();
    
  
  }
}
 
//*********************************************************************************

When i complied i receive this error !!!! 
How can i use ITK and Java ??? I need some examples too !!! 
Tanxs a lot for your help !!!!
 
C:\>javac TestItk.java
TestItk.java:9: cannot resolve symbol
symbol  : class ImageFileReaderF2
location: class TestItk
      ImageFileReaderF2 reader = new ImageFileReaderF2();
      ^
TestItk.java:9: cannot resolve symbol
symbol  : class ImageFileReaderF2
location: class TestItk
      ImageFileReaderF2 reader = new ImageFileReaderF2();
                                     ^
2 errors

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20040909/b971c236/attachment.html


More information about the Insight-users mailing list