<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello,<div><br></div><div>It appears that the Wrapping read me is a bit out of date. It would be good if you could add this issue to the SimpleITK issue tracker:</div><div><br></div><div><a href="https://itk.icts.uiowa.edu/jira/browse/SIMPLEITK">https://itk.icts.uiowa.edu/jira/browse/SIMPLEITK</a></div><div><br></div><div>This visual guide is mostly current:</div><div><br></div><div><a href="http://www.vtk.org/Wiki/A_visual_guide_to_SimpleITK_in_Java">http://www.vtk.org/Wiki/A_visual_guide_to_SimpleITK_in_Java</a></div><div><br></div><div>I believe the bit you need are:</div><div><br></div><div><div>SimpleITK-build/Wrapping/simpleitk-0.5.0.jar</div><div>SimpleITK-build/Wrapping/simpleitk-javadoc-0.5.0.jar</div><div>SimpleITK-build/Wrapping/simpleitk-source-0.5.0.jar</div></div><div><br></div><div>Then there is the needed java native shared library which currently is here:</div><div><br></div><div><div>SimpleITK-build/lib/libSimpleITKJava.jnilib</div></div><div><br></div><div>Which has moved since the release version from SimpleITK-build/Wrapping.</div><div><br></div><div><br></div><div><br><div><div>On Apr 18, 2012, at 4:08 PM, <a href="mailto:aptea@mskcc.org">aptea@mskcc.org</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"><title>Re: [Insight-users] SimpleITK / jar wrapper?</title>
<div>
<font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">Hello Brad,<br>
<br>
Thanks for your reply. I tried to build SimpleITK using the following procedure:<br>
</span></font><font size="1"><font face="Courier, Courier New"><span style="font-size:7.5pt">git clone --recursive <font color="#3866BB"><a href="http://itk.org/SimpleITK.git">http://itk.org/SimpleITK.git</a><br>
</font>mkdir SimpleITK-build<br>
cd SimpleITK-build<br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><br>
Then, I used “make” to build SimpleITK. It ran until 32% completion, and gave the following message:<br>
<br>
</span></font><font size="1"><font face="Courier, Courier New"><span style="font-size:8pt">Linking CXX shared module ../lib/simpleitk.bundle<br>
ld: framework not found ruby<br>
collect2: ld returned 1 exit status<br>
make[5]: *** [lib/simpleitk.bundle] Error 1<br>
make[4]: *** [Wrapping/CMakeFiles/simpleitk.dir/all] Error 2<br>
make[3]: *** [all] Error 2<br>
make[2]: *** [SimpleITK-prefix/src/SimpleITK-stamp/SimpleITK-build] Error 2<br>
make[1]: *** [CMakeFiles/SimpleITK.dir/all] Error 2<br>
make: *** [all] Error 2<br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><br>
It did create simpleitk-0.4.0.jar file under SimpleITK-build/Wrapper directory. Then, I tried to use this .jar file within Matlab. For this, I added the file to classpath, but I am not able to load the classes within this file as described in the examples. For example, </span></font><font size="1"><font face="Courier, Courier New"><span style="font-size:9pt">org.itk.simple.ImageFileReader </span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">could not be accessed and so on. The documentation under <a href="http://www.itk.org/SimpleITKDoxygen/html/Wrapping.html">http://www.itk.org/SimpleITKDoxygen/html/Wrapping.html</a> mentions that I should get </span></font><font size="1"><font face="Courier, Courier New"><span style="font-size:9pt">org.itk.simple.jar </span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">file that contains the required classes. But I did not get this file when I built SimpleITK. So I am confused about where to find the java classes that wrap ITK functions.<br>
<br>
Thanks,<br>
Aditya<br>
<br>
<br>
<br>
On 4/18/12 3:49 PM, "Bradley Lowekamp" <<a href="x-msg://497/blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a>> wrote:<br>
<br>
</span></font><blockquote type="cite"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">Hello,<br>
<br>
The SimpleITK Getting Started wiki page a a section for Binaries:<br>
<br>
<a href="http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted#Binaries">http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/GettingStarted#Binaries</a><br>
<br>
Which points to SourceForge for the Java Binaries:<br>
<br>
<a href="http://sourceforge.net/projects/simpleitk/files/SimpleITK/0.4.0/Java/">http://sourceforge.net/projects/simpleitk/files/SimpleITK/0.4.0/Java/</a><br>
<br>
<br>
Where there is a download for Java for MacOSX 10.6:<br>
<br>
</span><font size="2"><span style="font-size:10pt">SimpleITK-0.4.0-Java-maxosx-10.6-intel.zip <<a href="http://sourceforge.net/projects/simpleitk/files/SimpleITK/0.4.0/Java/SimpleITK-0.4.0-Java-maxosx-10.6-intel.zip/download">http://sourceforge.net/projects/simpleitk/files/SimpleITK/0.4.0/Java/SimpleITK-0.4.0-Java-maxosx-10.6-intel.zip/download</a>> <br>
</span></font><span style="font-size:11pt"><br>
This would likely also work for macOSX 10.7 as well.<br>
<br>
I also would like to know what was the issue when you tried to compile SimpleITK on OSX.<br>
<br>
Thanks,<br>
Brad<br>
<br>
<br>
<br>
On Apr 18, 2012, at 3:32 PM, <a href="x-msg://497/aptea@mskcc.org">aptea@mskcc.org</a> wrote:<br>
<br>
</span></font><blockquote type="cite"><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt">SimpleITK / jar wrapper? <br>
Are SimpleITK Wrapper .jar files available for download?<br>
I failed to build SimpleITK for Mac OS X, so was wondering if I could use the binaries directly?<br>
Many thanks!<br>
<br>
<br>
=====================================================================<br>
<br>
Please note that this e-mail and any files transmitted from<br>
Memorial Sloan-Kettering Cancer Center may be privileged, confidential,<br>
and protected from disclosure under applicable law. If the reader of<br>
this message is not the intended recipient, or an employee or agent<br>
responsible for delivering this message to the intended recipient,<br>
you are hereby notified that any reading, dissemination, distribution, <br>
copying, or other use of this communication or any of its attachments<br>
is strictly prohibited. If you have received this communication in <br>
error, please notify the sender immediately by replying to this message<br>
and deleting this message, any attachments, and all copies and backups<br>
from your computer.<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a> <<a href="http://www.kitware.com/">http://www.kitware.com</a>> <br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</span></font></blockquote><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><br>
</span></font><font size="4"><font face="Helvetica, Verdana, Arial"><span style="font-size:14pt">========================================================<br>
</span></font></font><font face="Helvetica, Verdana, Arial"><font size="1"><span style="font-size:9pt"><br>
</span></font><font size="4"><span style="font-size:14pt">Bradley Lowekamp </span></font><font size="1"><span style="font-size:9pt"> <br>
<br>
</span></font><font size="4"><span style="font-size:14pt">Medical Science and Computing for<br>
</span></font><font size="1"><span style="font-size:9pt"><br>
</span></font><font size="4"><span style="font-size:14pt">Office of High Performance Computing and Communications<br>
</span></font><font size="1"><span style="font-size:9pt"><br>
</span></font><font size="4"><span style="font-size:14pt">National Library of Medicine <br>
</span></font><font size="1"><span style="font-size:9pt"><br>
</span></font><font size="4"><span style="font-size:14pt"><a href="x-msg://497/blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a><br>
</span></font><font size="1"><span style="font-size:9pt"><br>
</span></font></font><font face="Calibri, Verdana, Helvetica, Arial"><span style="font-size:11pt"><br>
<br>
<br>
</span></font></blockquote>
</div>
</blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 12px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space"> </span><span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space"> </span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline">
</div>
<br></div></body></html>