Solution to outofmemory prompted by ANT compilation in eclipse

Source: Internet
Author: User

This error occurs because ant does not have enough memory for JVM by default during execution. You need to set the startup parameters to increase the amount of memory that can be used. If you use the command line to directly execute ant, you can directly modify the startup command. However, the command line setting is not easy to use when executed on Eclipse.
I tried it several times and finally got it done.
You can set parameters directly on the execution JVM of eclipse as follows:
1. Open Window> preferences> JAVA> installed jres
2. Select the JDK used by default (in progress ).
3. Click Edit... and add the appropriate parameters to the default VM arguments, for example,-xmx1024m.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.