<div dir="ltr">Hi May,<div><br></div><div>I'm not sure if you use VTK/master or just the released package of VTK 6.<br></div><div style>But I did increase the memory for the javac process in current VTK/master to overcome that exact issue.</div>
<div style>So maybe you just want to do the same in your code base.</div><div style><br></div><div style>Here is the change that you need to make inside the VTK source tree.</div><div style>Edit the file Wrapping/Java/CMakeLists.txt and replace</div>
<div style><br></div><div style>=> set(JAVAC_OPTIONS -J-Xmx256m)</div><div style><br></div><div style>by</div><div style><br></div><div style>=> set(JAVAC_OPTIONS -J-Xmx512m)</div><div style><br></div><div style>
Or more, if it still fails compiling the code.</div><div style><br></div><div style>Seb</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 29, 2013 at 1:30 PM, may <span dir="ltr"><<a href="mailto:meixiao@gmail.com" target="_blank">meixiao@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, Guys,<br>
<br>
I am trying to compile VTK6.0 with Java wrapping on my MAC OS 10.8. Once the<br>
compile gets to 98%, it will stop and have an out of memory exception. I had<br>
to give up VTk6.0 and go back to VTK5.8. It would be really great if anyone<br>
can tell me why this heap size error happens on VTK6.0, but not on VTK5.8<br>
and how to fix it. Thank you very much.<br>
<br>
Best regards,<br>
May<br>
<br>
<br>
Here is the error message:<br>
<br>
<br>
[ 98%] Built target VTKJavaIOSQL<br>
Scanning dependencies of target VTKJavaIOVideo<br>
[ 98%] Built target VTKJavaIOVideo<br>
Scanning dependencies of target VTKJavaImagingStatistics<br>
[ 98%] Built target VTKJavaImagingStatistics<br>
Scanning dependencies of target VTKJavaImagingStencil<br>
[ 98%] Built target VTKJavaImagingStencil<br>
Scanning dependencies of target VTKJavaRenderingImage<br>
[ 98%] Built target VTKJavaRenderingImage<br>
Scanning dependencies of target VTKJavaImagingMorphological<br>
[ 98%] Built target VTKJavaImagingMorphological<br>
Scanning dependencies of target VTKJavaRenderingLOD<br>
[ 98%] Built target VTKJavaRenderingLOD<br>
Scanning dependencies of target VTKJavaRenderingHybridOpenGL<br>
[ 98%] Built target VTKJavaRenderingHybridOpenGL<br>
Scanning dependencies of target VTKJavaClasses<br>
[ 98%] Compiling Java Classes<br>
warning: [options] bootstrap class path not set in conjunction with -source<br>
1.5<br>
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space<br>
at com.sun.tools.javac.resources.javac.getContents(javac.java:5)<br>
at<br>
java.util.ListResourceBundle.loadLookup(ListResourceBundle.java:189)<br>
at<br>
java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:124)<br>
at java.util.ResourceBundle.getObject(ResourceBundle.java:389)<br>
at java.util.ResourceBundle.getString(ResourceBundle.java:355)<br>
at<br>
com.sun.tools.javac.util.JavacMessages.getLocalizedString(JavacMessages.java:190)<br>
at<br>
com.sun.tools.javac.util.JavacMessages.getLocalizedString(JavacMessages.java:141)<br>
at<br>
com.sun.tools.javac.util.JavacMessages.getLocalizedString(JavacMessages.java:135)<br>
at com.sun.tools.javac.main.Main.getLocalizedString(Main.java:585)<br>
at com.sun.tools.javac.main.Main.resourceMessage(Main.java:527)<br>
at com.sun.tools.javac.main.Main.compile(Main.java:459)<br>
at com.sun.tools.javac.main.Main.compile(Main.java:353)<br>
at com.sun.tools.javac.main.Main.compile(Main.java:342)<br>
at com.sun.tools.javac.main.Main.compile(Main.java:333)<br>
at com.sun.tools.javac.Main.compile(Main.java:76)<br>
at com.sun.tools.javac.Main.main(Main.java:61)<br>
make[2]: *** [java/javac_stamp.txt] Error 1<br>
make[1]: *** [Wrapping/Java/CMakeFiles/VTKJavaClasses.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Error-compile-VTK6-0-on-MAC-OS-10-8-tp5723136.html" target="_blank">http://vtk.1045678.n5.nabble.com/Error-compile-VTK6-0-on-MAC-OS-10-8-tp5723136.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>