ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Walend <dwal...@eecs.tufts.edu>
Subject Re: fork javac
Date Thu, 28 Dec 2000 20:30:39 GMT
On Thu, 28 Dec 2000, Nico Seessle wrote:
> > If I change an interface, then javac/ant crashes while compiling the
> > implementation classes with an "ArrayIndexOutOfBoundsError" and advice to
> > mail the JDC bug list for help.
> I wanted to test this on my system but I get:
> 
> C:\Java\lyophilizer\source>ant
> Buildfile: build.xml
> Warning: Class org.apache.tools.ant.taskdefs.optional.FTP could not be
> found - t
> ask ftp not defined.

Nico,

I think you need to add the optional tasks to the class path inside
the ant executable. At least the P4sync task isn't where ant is looking. 
Mine's

LOCALCLASSPATH=/usr/share/java/ant.jar:/usr/share/java/jaxp.jar:/usr/share/java/
parser.jar:/usr/share/java/optional.jar:/usr/local/java/junit/junit.jar

You'll have to translate it for windows. (I don't know how to do that.)

> Warning: Class org.apache.tools.ant.taskdefs.optional.perforce.P4sync could
> not
> be found - task perforce not defined.
> 
> BUILD FAILED

I get

lyophil-ejb11:
Compiling 1 source file to
/home/dwalend/opensource/lyophilizer/build/lyophil-ejb11
An exception has occurred in the compiler (1.3.0). Please file a bug at
the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi).
Include your program and the following diagnostic in your report.  Thank
you.
java.lang.InternalError: jzentry == 0
	at java.util.zip.ZipFile$2.nextElement(ZipFile.java:297)
	at
com.sun.tools.javac.v8.code.ClassReader.openArchive(ClassReader.java:893)
	at
com.sun.tools.javac.v8.code.ClassReader.list(ClassReader.java:1095)
	at
com.sun.tools.javac.v8.code.ClassReader.listAll(ClassReader.java:1180)
	at
com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1202)
	at
com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:955)
	at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
	at com.sun.tools.javac.v8.comp.Enter._case(Enter.java:424)
	at com.sun.tools.javac.v8.tree.Tree$TopLevel.visit(Tree.java:349)
	at com.sun.tools.javac.v8.comp.Enter.classEnter(Enter.java:392)
	at com.sun.tools.javac.v8.comp.Enter.classEnter(Enter.java:410)
	at com.sun.tools.javac.v8.comp.Enter.main(Enter.java:540)
	at
com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:357)
	at com.sun.tools.javac.v8.Main.compile(Main.java:247)
	at com.sun.tools.javac.Main.compile(Main.java:26)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.tools.ant.taskdefs.Javac.doModernCompile(Javac.java)
	at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java)
	at org.apache.tools.ant.Target.execute(Target.java)
	at org.apache.tools.ant.Project.runTarget(Project.java)
	at org.apache.tools.ant.Project.executeTarget(Project.java)
	at org.apache.tools.ant.Project.executeTargets(Project.java)
	at org.apache.tools.ant.Main.runBuild(Main.java)
	at org.apache.tools.ant.Main.main(Main.java)

BUILD FAILED

I fix it by rerunning ant, and it works fine. If I can figure out how to
fork javac, I think that it will be fixed. Does anyone know how?

Thanks,

Dave


Mime
View raw message