ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kendall Collett" <kcoll...@convio.com>
Subject Re: javac exception when including JAR files
Date Thu, 24 Oct 2002 19:26:07 GMT
Make sure you haven't corrupted one of your Tomcat Jar files (e.g. by using
cvs co w/o -kb (implied or otherwise)).  See Java bug #4353705
(<http://developer.java.sun.com/developer/bugParade/bugs/4353705.html>) for
more information.

Kendall

----- Original Message -----
From: "Steve Shulman" <steve@shulmans.org>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, October 24, 2002 13:04
Subject: javac exception when including JAR files


> I'm trying to use javac within Ant. I have set up a patternset to include
> some third party JAR files and this seems to work well. However, I'm also
> trying to include the JAR files in the Tomcat 4.0 common/lib and lib
> directories, using the following script:
>
>     <pathelement location="${tomcat.home}/common/classes" />
>     <pathelement location="${tomcat.home}/classes" />
>
>     <fileset dir="${tomcat.home}/common/lib">
>       <include name="*.jar" />
>     </fileset>
>     <fileset dir="${tomcat.home}/lib">
>       <include name="*.jar" />
>     </fileset>
>
> When I comment out the above lines, javac begins to compiles the source
code
> and only throws an error when it stumbles on code requiring the Tomcat JAR
> files. However, when I do include the above text,  the exception below is
> thrown before a single Java file is compiled. I've checked that
tomcat.home
> is mapped correctly. Any help in this matter would be greatly appreciated.
>
> Steve
>
>
>     [javac] An exception has occurred in the compiler (1.3.1_06). 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.
>     [javac] java.lang.InternalError: jzentry == 0
>     [javac] at java.util.zip.ZipFile$2.nextElement(ZipFile.java:292)
>     [javac] at
> com.sun.tools.javac.v8.code.ClassReader.openArchive(ClassReader.java:893)
>     [javac] at
> com.sun.tools.javac.v8.code.ClassReader.list(ClassReader.java:1095)
>     [javac] at
> com.sun.tools.javac.v8.code.ClassReader.listAll(ClassReader.java:1191)
>     [javac] at
> com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:1213)
>     [javac] at
> com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:955)
>     [javac] at
com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366)
>     [javac] at com.sun.tools.javac.v8.comp.Enter._case(Enter.java:424)
>     [javac] at
> com.sun.tools.javac.v8.tree.Tree$TopLevel.visit(Tree.java:349)
>     [javac] at
com.sun.tools.javac.v8.comp.Enter.classEnter(Enter.java:392)
>     [javac] at
com.sun.tools.javac.v8.comp.Enter.classEnter(Enter.java:410)
>     [javac] at com.sun.tools.javac.v8.comp.Enter.main(Enter.java:540)
>     [javac] at
> com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:357)
>     [javac] at com.sun.tools.javac.v8.Main.compile(Main.java:247)
>     [javac] at com.sun.tools.javac.Main.compile(Main.java:26)
>     [javac] at java.lang.reflect.Method.invoke(Native Method)



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message