问题
When I build an application with ant in eclipse . I met java.lang.OutOfMemoryError: Java heap space. How do I set ANT_OPTS under eclipse?
Thanks.
回答1:
When you right-click build.xml
, select "Ant Build..." (with the ellipsis). This will bring up the run configuration dialog, and you'll be able to specify the memory arguments in the "JRE" tab.
来源:https://stackoverflow.com/questions/4156147/how-do-i-set-ant-opts-under-eclipse