From user-return-42948-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed May 05 13:51:53 2004 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 11001 invoked from network); 5 May 2004 13:51:53 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 May 2004 13:51:53 -0000 Received: (qmail 17641 invoked by uid 500); 5 May 2004 13:50:36 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 17511 invoked by uid 500); 5 May 2004 13:50:35 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 17466 invoked from network); 5 May 2004 13:50:34 -0000 Received: from unknown (HELO web40610.mail.yahoo.com) (66.218.78.147) by daedalus.apache.org with SMTP; 5 May 2004 13:50:34 -0000 Message-ID: <20040505135029.76574.qmail@web40610.mail.yahoo.com> Received: from [62.44.96.2] by web40610.mail.yahoo.com via HTTP; Wed, 05 May 2004 06:50:29 PDT Date: Wed, 5 May 2004 06:50:29 -0700 (PDT) From: Ivan Ivanov Subject: Re: out of memory with javac To: Ant Users List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello CR, can you say how many java files you work with? Are they really so many? As for yor shell command javac -J-mx1000000000 -d $TEMP_SOURCE *.java, I think that *.java will take only the java files in the current dir and not all files in the package hieararchy and thus the shell command will compile only a part of the sources. Of course this is not an answer to your problem. I also saw that you are using executable="${was4.home}/java/bin/javac" Can you try without it? Ivan --- chandrasekar.ravoori@polaris.co.in wrote: > > Hi, > > The following is a code snippet from my build file > fork="true" > memoryMaximumSize="1000m" > > executable="${was4.home}/java/bin/javac" > tempdir="${basedir}/TEMP" > srcdir="${basedir}/APP/SOURCES" > destdir=" > ${basedir}/APP/CLASSES" > > > > > > > This task fails with an out-of-memory exception. > However, the equivalent command on the shell prompt > works without a hitch - > javac -J-mx1000000000 -d $TEMP_SOURCE *.java. > I have even tried the following alternatives > 1. Running javac within the Ant JVM ( fork = "false" > ) and setting the > maximum heap size via ANT_OPTS. > 2. Running javac using the exec task and specifying > the heap size as the > argument(-J-mx2000000000). > > Nothing works; I am frankly at my wits' end. Is > forking the problem here? > Any help would be much > appreciated. > > Regards, > CR > > > > > > This e-Mail may contain proprietary and confidential > information and is sent for the intended > recipient(s) only. > If by an addressing or transmission error this mail > has been misdirected to you, you are requested to > delete this mail immediately. > You are also hereby notified that any use, any form > of reproduction, dissemination, copying, disclosure, > modification, > distribution and/or publication of this e-mail > message, contents or its attachment other than by > its intended recipient/s is strictly prohibited. > > Visit Us at http://www.polaris.co.in > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org