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.
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.