You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mike Pedersen <mi...@oracle.com> on 2001/05/03 23:19:36 UTC

out of memory with javac

Hello all, I'm attempting to compile a project which contains about 1300 
source files on solaris.  When using ant 1.3 or 1.4latest alpha I get the 
following error.
     [javac] The compiler has run out of memory.  Consider using the 
"-J-mx<number>" command line option to increase the maximum heap size.
     [javac] Compile failed, messages should have been provided.

Smaller projects build successfully on this configuration.  I've noticed 
that the javac task doesn't have a maxmem option like the javadoc 
task.  I'm wondering what the best way with in ant would be to increase the 
available memory?  This project does build successfully on my Windows box.
Thanks much for any help.


Re: out of memory with javac

Posted by Diane Holt <ho...@yahoo.com>.
See the mail archive at message:

http://marc.theaimsgroup.com/?l=ant-user&m=98634558208888&w=2

And for a little more info:

http://marc.theaimsgroup.com/?l=ant-user&m=98841369924374&w=2

(Guess I should probably add this one to the FAQ.)

Diane

--- Mike Pedersen <mi...@oracle.com> wrote:
> Hello all, I'm attempting to compile a project which contains about 1300
> 
> source files on solaris.  When using ant 1.3 or 1.4latest alpha I get
> the 
> following error.
>      [javac] The compiler has run out of memory.  Consider using the 
> "-J-mx<number>" command line option to increase the maximum heap size.
>      [javac] Compile failed, messages should have been provided.
> 
> Smaller projects build successfully on this configuration.  I've noticed
> 
> that the javac task doesn't have a maxmem option like the javadoc 
> task.  I'm wondering what the best way with in ant would be to increase
> the 
> available memory?  This project does build successfully on my Windows
> box.
> Thanks much for any help.
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/