ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Moore <jim.mo...@veritas.com>
Subject RE: javac on Unix
Date Wed, 04 Apr 2001 13:01:33 GMT
It shouldn't be using the same VM if you use the "fork=true" attribute,
though.  Have you tried that?


-----Original Message-----
From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
Sent: Tuesday, April 03, 2001 8:55 PM
To: ant-user@jakarta.apache.org
Subject: RE: javac on Unix


Dana,

Since javac is used as a class from within Ant, it is run within Ant's VM
and therefore you need to increase the size of Ant's VM. You can do that
with the JAVACMD environment variable. Set it to something like
JAVACMD=java -Xmx256m
for example.

Conor


> -----Original Message-----
> From: Dana Rice [mailto:Dana.Rice@exodus.net]
> Sent: Wednesday, 4 April 2001 7:28 AM
> To: AntUG (E-mail)
> Subject: javac on Unix
>
>
> Has anyone had a problem using javac on Unix. The problem is related to
> memory and you get this error:
> [javac] The compiler has run out of memory.  Consider using the
> "-J-mx<number>" command line option to increase the maximum heap size.
>  I have tried compiling the source files in groups but there comes a point
> when there is inter class dependency and the build fails. I have
> tried using
> javac as an executable with <execon> so I can pass it the
> -J-Xmx32m argument
> but this doesn't work either. Anyone seen this?
>

Mime
View raw message