[Insight-users] ITK and Java

Luis Ibanez luis.ibanez at kitware.com
Tue Jul 13 17:28:28 EDT 2004


Hi Yixun,

Many improvements have been done in the
Java wrapping since ITK 1.6. You don't
want to use ITK 1.6 for Java wrapping
at this point. Instead, you should go
for the CVS version.


[Note that ITK 1.8 will be released by August].


------------------------------

Please do the following


1) Install the Java SDK 1.4.2


2) Download a CVS checkout of ITK
   posterior to July 10 2004.
   Just downloading it today will be ok.


3) Download CSwig from
   http://www.itk.org/HTML/RelatedSoftware.htm
   http://www.itk.org/HTML/CableSwig.html

   and move the tree to be a subdirectory   of

       Insight/Utilities


4) Configure ITK using CMake.
   Enable Shared libraries,
   Disable Examples
   Disable Testing


5) Load the ITK.dsw workspace in VisualStudio
   (you are using VC++6.0). Build it, (it
   should take less than 15 minutes).  Then
   quit VisualStudio. You want to do this
   build for "Release" not for "Debug".


6) Rerun CMake, pass to "Advanced" mode
   and enable

        ITK_CSWIG_JAVA

   configure, and generate the project.
   Make sure that the following variables
   are set correctly:

    JAVA_COMMAND
    JAVA_ARCHIVE
    JAVA_COMPILE
    JAVA_INCLUDE_PATH
    JAVA_RUN_TIME


7) Load again the ITK.dsw.
   Make sure that you select "Release"
   as the configuration option.
   Then start building it.

   This will take a while,... so you
   can go for lunch or start reading
   that paper that has been waiting in
   your desk   :-)


8) When the build is done, you want to
   add to your CLASSPATH environment
   variable the following entry

    ITKBin/Wrapping/CSwig/Java/InsightToolkit.jar

   Where "ITKBin" is the binary directory where
   you built ITK.


9) Then you are ready to try the Java examples
   that you will find in the directory

        Insight/Examples/Filtering.



Please let us know if you find any problems,


    Thanks,


      Luis




------------
yxliu wrote:
> Hi, ITKusers,
>  
> I know ITK supprot Java. Could anybody tell be how to generate the java 
> class on the platform: windowXP, MS VC6.0 Cmake 2.0.2, ITK1.6?
>  
> Thanks in advance
>  
> Best regards,
>  
> Yixun liu
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users





More information about the Insight-users mailing list