ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Indranil Pal Chaudhuri" <ind_ch...@hotmail.com>
Subject problem in compilation of java files
Date Wed, 05 Sep 2001 03:56:30 GMT

Hi All,
I am using Ant to compile java files in a set of packages. it gives me
following exception followed by OutOfMemory Exception.

The package it was compiling is having 80 java files.

         at org.apache.tools.ant.Project.executeTargets(Compiled Code)
         at org.apache.tools.ant.Main.runBuild(Compiled Code)
         at org.apache.tools.ant.Main.main(Main.java:149)

BUILD FAILED

C:\R2\MANTRA\build.xml:128: Error starting classic compiler:
--- Nested Exception ---
java.lang.reflect.InvocationTargetException
         at
org.apache.tools.ant.taskdefs.compilers.Javac12.execute(Javac12.java)

         at org.apache.tools.ant.taskdefs.Javac.execute(Compiled Code)
         at org.apache.tools.ant.Target.execute(Compiled Code)
         at org.apache.tools.ant.Project.runTarget(Project.java)
         at org.apache.tools.ant.Project.executeTarget(Compiled Code)
         at org.apache.tools.ant.Project.executeTargets(Compiled Code)
         at org.apache.tools.ant.Main.runBuild(Compiled Code)
         at org.apache.tools.ant.Main.main(Main.java:149)

Total time: 17 seconds
Label not found

The part of xml code used for this..

   ....

   <path id="classpath">
   </path>

   <path id="tests-classpath">
     <pathelement location="${build.classes}" />
     <path refid="classpath" />
   </path>

   <target name="build">

     <mkdir dir="${build.classes}"/>

     <javac srcdir="${awt}" includes="**/*.java" >
         <classpath refid="tests-classpath" />
     </javac>

......


It will be really helpful I fond a solution on this.

regards,
Neel







_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


Mime
View raw message