• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to configure ANT_OPTS inside Eclipse?

 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'd set ANT_OPTS under environment variables for Windows 2000 so that my Ant build could work under command prompt. When I try to do the same Ant build within Eclipse, I got hit with the out of memory issue. I know the solution should be setting the ANT_OPTS again, but I can't seems to locate where to set it in Eclipse.

Help is much appreciated.

 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chengwei,
I don't know of a way to set ANT_OPTS. You can set a larger heap size for the JVM on the Run as Ant --> Run... menu.
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jeanne,

Tried to look for the right place to set that heap value, but can't seems to find it. Anyway, managed to resolve my issue by setting the min & max memory size attribute of the javac Ant task and it's now working.

Thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic