ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kapil_Pa...@i2.com
Subject Re: problem in compilation of java files
Date Wed, 05 Sep 2001 04:10:18 GMT
Hi Indranil,

What is line no. 128 in your build XML file? Are you using the 
"java.compiler" property? Which JDK version are you using?
_____________________________________
Kapil Singh Pawar
Consultant - Integration
i2 Technologies India Private Ltd.
1 Primrose Road
Bangalore 560 025, INDIA
Email: kapil_pawar@i2.com
Tel: +91 80 558 1487-90 ext. 2416




"Indranil Pal Chaudhuri" <ind_chdri@hotmail.com>
09/05/01 09:26 AM
Please respond to ant-user

 
        To:     ant-user@jakarta.apache.org
        cc: 
        Subject:        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




Mime
View raw message