JDK-6250581 : Compilation error java.lang.InternalError: jzentry == 0
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-04-05
  • Updated: 2011-02-16
  • Resolved: 2005-04-05
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
After installing Windows, I installed jdk-1_5_0_01-windows-i586-p, then netbeans-4_0-bin-windows

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

EXTRA RELEVANT SYSTEM CONFIGURATION :
Microsoft Windows XP w/SP 1


A DESCRIPTION OF THE PROBLEM :
This appears to be related to Bug ID 4977607, but as that bug report was (a) for previous versions and (b) has been closed, I'm filing this bug report.

I attempt to compile from within NetBeans, and I get an internal compiler error.  Details are entered below.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Attempted to compile/execute the program from within the NetBean IDE using Build | Build Main Project menu selection.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
  To hopefully compile and execute, other to at least report syntax errors.
ACTUAL -
Compile terminated with an internal exception.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
init:
deps-jar:
Compiling 1 source file to C:\JavaProjects\HangmanJava\build\classes
An exception has occurred in the compiler (1.5.0_01). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
java.lang.InternalError: jzentry == 0,
 jzfile = 229944,
 total = 12898,
 name = C:\Program Files\Java\jdk1.5.0_01\jre\lib\rt.jar,
 i = 3502,
 message = invalid LOC header (bad signature)
    at java.util.zip.ZipFile$3.nextElement(ZipFile.java:427)
    at java.util.zip.ZipFile$3.nextElement(ZipFile.java:413)
    at com.sun.tools.javac.jvm.ClassReader.openArchive(ClassReader.java:1442)
    at com.sun.tools.javac.jvm.ClassReader.list(ClassReader.java:1719)
    at com.sun.tools.javac.jvm.ClassReader.listAll(ClassReader.java:1859)
    at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1873)
    at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1521)
    at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
    at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:249)
    at com.sun.tools.javac.tree.Tree$TopLevel.accept(Tree.java:386)
    at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:214)
    at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:228)
    at com.sun.tools.javac.comp.Enter.complete(Enter.java:441)
    at com.sun.tools.javac.comp.Enter.main(Enter.java:426)
    at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:413)
    at com.sun.tools.javac.main.Main.compile(Main.java:592)
    at com.sun.tools.javac.main.Main.compile(Main.java:544)
    at com.sun.tools.javac.Main.compile(Main.java:67)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:936)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:64)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:377)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
BUILD FAILED (total time: 0 seconds)


REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Attached seperatly

---------- END SOURCE ----------
###@###.### 2005-04-05 10:14:03 GMT