You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lintang JP <li...@gmail.com> on 2006/09/01 05:00:23 UTC

Re: java.lang.OutOfMemoryError with ant javac task

Hi miroconnect,

Maybe you can use this :

 <javac destdir="${classes.dir}" debug="${compiler.debug}" nowarn="${
compiler.generate.no.warnings}" memoryMaximumSize="${compiler.max.memory}"
fork="true" executable="${jdk.home}/bin/javac" target="1.4" source="1.4">

Insert the  compiler.mac.memory into your <property name"... as well.

Regards,

On 9/1/06, temp temp <mi...@yahoo.com> wrote:
>
>     I using ant  build file to compile ".java" files  .I get
> java.lang.OutOfMemoryError.
>       Here is the build file
>             <property  name="compile.debug" value="true" />
>             <property  name="compile.deprecation" value="false" />
>             <property  name="compile.optimize" value="true" />
>
>             <path  id="compile.classpath">
>                   <pathelement  location="${basedir}/bin"/>
>                   <pathelement  location="${frmlib.home}"/>
>                   <fileset  dir="${frmlib.home}">
>                         <include  name="*.jar" />
>                   </fileset>
>                   <fileset  dir="${warlib.home}">
>                         <include  name="*.jar" />
>                   </fileset>
>             </path>
>
>
>                   <javac  srcdir="${src.home}" destdir="${
> build.home.classes}"  debug="${compile.debug}"  deprecation="${
> compile.deprecation}"  optimize="${compile.optimize}">
>                         <classpath  refid="compile.classpath" />
>                   </javac>
>
>       compile:
>           [javac] Compiling 2424  source files to
> C:\java\eclipse\eclipse\workspace\Fema\build\classes
>           [javac] The system  is out of resources.
>           [javac] Consult the  following stack trace for details.
>           [javac]  java.lang.OutOfMemoryError
>
>       BUILD FAILED
>       C:\java\eclipse\eclipse\workspace\Fema\fema-build-1.xml:80:  Compile
> failed; see the compiler error output for details.
>
>
>       What  could be the problem?
>
>
> ---------------------------------
> Do you Yahoo!?
> Everyone is raving about the  all-new Yahoo! Mail.
>



-- 
-------------------------------------------------------------------
Laboratorium Pemrograman Kehidupan
Kavling Bumi, Galaksi Bimasakti
D.u.n.i.a

#365364 Registered Linux User