Java version
Hi, I'm following the instructions to Core Java2 Volume I and loadded the j2se version 5 with update 5. I assumed this was inclusive of all patches. My java -version ran well. When compiling Welcome.java into bit code, I have a compiler exception <1.5.0_02>. Was the download inclusive of all patches or what should I have done. test follow: C:\corejava\v1\v1ch2\Welcome>java -version
java version"1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) Client VM (build 1.5.0_05-b05, mixed mode, sharing)
C:\corejava\v1\v1ch2\Welcome>javac Welcome.java
An exception has occurred in the compiler (1.5.0_02). Please file a bug at the J
ava Developer Connection (http://java.sun.com/webapps/bugreport) after checking
the Bug Paradefor duplicates. Include your program and the following diagnosti
c in your report. Thank you.
java.lang.InternalError: jzentry == 0,
jzfile = 2542632,
total = 382,
name = C:\Sun\AppServer\jdk\jre\lib\jsse.jar,
i = 2,
message = invalid LOC header (bad signature)
at java.util.zip.ZipFile$3.nextElement(ZipFile.java:430)
at java.util.zip.ZipFile$3.nextElement(ZipFile.java:416)
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 com.sun.tools.javac.Main.main(Main.java:52)
C:\corejava\v1\v1ch2\Welcome>more Welcome.java
/**
@version 1.20 2004-02-28
@author Cay Horstmann
*/
publicclass Welcome
{
publicstaticvoid main(String[] args)
{
String[] greeting =new String[3];
greeting[0] ="Welcome to Core Java";
greeting[1] ="by Cay Horstmann";
greeting[2] ="and Gary Cornell";
for (String g : greeting)
System.out.println(g);
}
}

