ANT Compile – Java Heap Space

Can’t compile your project in Flash Builder with ANT because of a lack of memory? Do this :

Got to Run –> External Tools –> External Tools Configurations

Select your ANT task on the left hand side, then select the JRE tab. In the VM arguments box type this

-Xmx640m

Now run it again. Should work. Thanks.