ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kai Bartels <k...@picturesafe.de>
Subject Re: javac on Unix
Date Thu, 05 Apr 2001 07:32:20 GMT
On Wed, Apr 04, 2001 at 09:07:53AM -0700, Dana Rice wrote:
> Conor,
> where is this set?
> 
> -----Original Message-----
> From: Conor MacNeill [mailto:conor@cortexebusiness.com.au]
> Sent: Tuesday, April 03, 2001 6: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

Hi Dana,

set this environment variable in ~/.antrc (maybe you call it $HOME/.antrc) on
*NIX boxes, don't forget to export it! The lines in my ~/.antrc read:
--------------------------------------------------
JAVA_HOME=/usr/local/jdk1.3
export JAVA_HOME
JAVACMD="/usr/local/jdk1.3/bin/java -mx400M"
export JAVACMD
--------------------------------------------------
(I don't think the setting of JAVA_HOME is necessary.)

cheers, Kai

-- 
"Kilt, n. A costume sometimes worn by Scotchmen in America an Americans
 in Scotland."                                               <Ambrose Bierce>
KBartels@picturesafe.de                  +                 www.picturesafe.de
picturesafe GmbH, Lueerstr. 3, D-30175 Hannover          fon:+49 511 85620 56
++ PGP Key fingerprint =  D2 B9 58 DC 36 52 DB 6C  18 CC 43 9F 68 E0 21 97 ++

Mime
View raw message