You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Indranil Pal Chaudhuri <in...@hotmail.com> on 2001/09/05 05:56:30 UTC
problem in compilation of java files
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