<br><div>In the MacPorts build for InsightToolkit, we&#39;ve noticed and replicated a build failure for the java wrapping at about 94% completion.</div><div><br></div><div>A possible fix is to add &quot;<span class="Apple-style-span" style="font-family: &#39;courier new&#39;, monospace; font-size: large; ">-J-mx1024m&quot;<span class="Apple-style-span" style="font-family: arial; font-size: small; ">  to patch Wrapping/WrapITK/Java/CMakeLists.txt</span></span></div>
<div><br></div><div><br></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">--- Wrapping/WrapITK/Java/CMakeLists.txt.orig   2010-02-18 18:44:08.000000000 -0800</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">+++ Wrapping/WrapITK/Java/CMakeLists.txt        2010-02-18 18:44:39.000000000 -0800</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">@@ -74,7 +74,7 @@ FOREACH(Kit ${java_itk_modules})</span></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">       OUTPUT ${WRAP_ITK_JAVA_DIR}/InsightToolkit/${File}.class</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">       DEPENDS ${WRAP_ITK_JAVA_DIR}/InsightToolkit/${File}.java ${WRAP_ITK_JAVA_DIR}/InsightToolkit/JavaCWD.java ${ITK_BASE_JAVA_FILE} ${ORDERING_DEP}</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">       COMMAND ${JAVA_COMPILE}</span></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">-      ARGS -classpath &quot;${ITK_JAVA_CLASSPATH}&quot; -d &quot;${ITK_JAVA_OUTPATH}&quot;</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">+      ARGS -classpath &quot;${ITK_JAVA_CLASSPATH}&quot; -d &quot;${ITK_JAVA_OUTPATH}&quot; -J-mx1024m</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">       ${WRAPPER_LIBRARY_OUTPUT_DIR}/${WRAP_ITK_JAVA_DIR}/InsightToolkit/${File}.java</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">       COMMENT &quot;Compile ${File}.java&quot;)</span></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">   ENDFOREACH(File)</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">@@ -86,7 +86,7 @@ FOREACH(Kit ${java_itk_modules})</span></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">     OUTPUT ${KIT_FILE_NAME}.class</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">     DEPENDS ${KIT_FILE_NAME}.java ${FULL_JAVA_DEP_FILES} ${ITK_BASE_JAVA_FILE} ${WRAPPER_LIBRARY_OUTPUT_DIR}/${WRAP_ITK_JAVA_DIR}/InsightToolkit/JavaCWD.java ${ORD</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">ERING_DEP}</span></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">     COMMAND ${JAVA_COMPILE}</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">-    ARGS -classpath &quot;${ITK_JAVA_CLASSPATH}&quot; -d &quot;${ITK_JAVA_OUTPATH}&quot;</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">+    ARGS -classpath &quot;${ITK_JAVA_CLASSPATH}&quot; -d &quot;${ITK_JAVA_OUTPATH}&quot; -J-mx1024m</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">     ${KIT_FILE_NAME}.java</span></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">     COMMENT &quot;Building ${KIT_FILE_NAME}.class&quot;)</span></font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><span class="Apple-style-span" style="font-size: large;">   SET(ITK_JAVA_KITS_FILES ${ITK_JAVA_KITS_FILES} ${KIT_FILE_NAME}.class)</span></font></div>
<div><br></div></div>