ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gordon Tyler" <>
Subject Re: OutOfMemory error
Date Thu, 06 Jun 2002 17:30:45 GMT

----- Original Message -----
From: "Hertel, Oliver" <>

> Hello,
> I get an OutOfMemoryError like this:
>     [javac] The system is out of resources.
>     [javac] Consult the following stack trace for details.
>     [javac] java.lang.OutOfMemoryError
>     [javac]     <<no stack trace available>>


> Any hints? There are lots of source files in there, but the machine has
> surely enough memory (4 GB).

Javac is executed within in the same JVM as Ant. Unless you've changed the
Ant startup scripts, it's using the default JVM memory settings (-Xmx64m I
think). You need to set the ANT_OPTS environment variable to something like


Our project compiles about 1800 source files successfully with that setting.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message