Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2002 16:47:17 +0100
From:      Thorsten Greiner <thorsten.greiner@consol.de>
To:        Lutz Bichler <Lutz.Bichler@UniBw-Muenchen.de>
Cc:        freebsd-java@FreeBSD.ORG
Subject:   Re: java compilation problem
Message-ID:  <3DD51705.10603@consol.de>
References:  <200211151622.30595.Lutz.Bichler@unibw-muenchen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Lutz,

from the output you copied it seems to me you are using ant to compile 
your project. In ant you can use some options to give the javac compiler 
more memory, e.g.:

<javac fork="yes" memoryMaximumSize="256m" ... />

Best regards

	-Thorsten

Lutz Bichler wrote:
> Hi,
> 
> while trying to compile a java project i get the following error on FreeBSD
> (jdk1.3.1 with green-thread and no hotspot as well as jdk1.4.0)
> 
>    [javac] The system is out of resources.
>     [javac] Consult the following stack trace for details.
> 
>     [javac] java.lang.OutOfMemoryError
>     [javac]     at java.util.zip.ZipFile.open(Native Method)
>     [javac]     at java.util.zip.ZipFile.<init>(ZipFile.java:112)
>     [javac]     at java.util.zip.ZipFile.<init>(ZipFile.java:72)
>     [javac]     at 
> com.sun.tools.javac.v8.code.ClassReader.openArchive(ClassReader.java:914)
>     [javac]     at 
> com.sun.tools.javac.v8.code.ClassReader.list(ClassReader.java:1121)
>     [javac]     at 
> com.sun.tools.javac.v8.code.ClassReader.listAll(ClassReader.java:1242)
>     [javac]     at 
> com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1264)
>     [javac]     at 
> com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:980)
> 
> My system has 1GB RAM and i played around with -Xms.. -Xmx... -Xss... values 
> without success. The same project compiles on Linux without problems. Any 
> idea whats wrong?
> 
> Lutz
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-java" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DD51705.10603>