Hi Neel,
Check your classpath. I guess this isn't set correctly. Perhaps you need to have $JAVA_HOME\lib\tools.jar in your classpath (not sure though).
_____________________________________
Kapil Singh Pawar
Consultant - Integration
i2 Technologies India Private Ltd.
1 Primrose Road
Bangalore 560 025, INDIA
Email: [EMAIL PROTECTED]
Tel: +91 80 558 1487-90 ext. 2416
"Indranil Pal Chaudhuri" <[EMAIL PROTECTED]>
09/05/01 09:53 AM
|
To: [EMAIL PROTECTED] cc: Subject: Re: problem in compilation of java files |
Hi kapil,
In my build.xml,
line no. 128 : <javac srcdir="${awt}" includes="**/*.java" >
Yes, I am using Java.compilier properties.
I am using JDK 1.1.7B.
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: problem in compilation of java files
Date: Wed, 5 Sep 2001 09:40:18 +0530
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: [EMAIL PROTECTED]
Tel: +91 80 558 1487-90 ext. 2416
"Indranil Pal Chaudhuri" <[EMAIL PROTECTED]>
09/05/01 09:26 AM
Please respond to ant-user
To: [EMAIL PROTECTED]
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
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp