[kaffe] bugs in jar program
Moses DeJong
dejong at cs.umn.edu
Wed Jan 6 03:03:58 PST 1999
I compiled and installed kaffe from the CVS today. I also made a symlink
in my share/kaffe directory to the JDK's classes.zip file.
% setenv CLASSPATH /tmp/mo/install_kaffe/share/kaffe/Klasses.jar
% /tmp/mo/install_kaffe/bin/jar -cf0 Test.jar Test.class
security properties not found. using defaults.
#at this point an uncompressed jar has been created. I can read
#and extract its contents with the JDK's jar program correctly.
#but, when I run the kaffe version of the jar program it bombs!
% /tmp/mo/install_kaffe/bin/jar -xf Test.jar
java.lang.Error: unknown compression method
at java/util/zip/InflaterInputStream.read(72)
at java/util/zip/ZipInputStream.read(70)
at sun/tools/jar/Main.extractFile(410)
at sun/tools/jar/Main.extract(375)
at sun/tools/jar/Main.run(106)
at sun/tools/jar/Main.main(524)
#jar will also bomb when creating a compressed archive
% /tmp/mo/install_kaffe/bin/jar -cf Test.jar Test.class
security properties not found. using defaults.
java.util.zip.ZipException: size not set in stored entry
at java/lang/Throwable.<init>(37)
at java/lang/Exception.<init>(21)
at java/io/IOException.<init>(22)
at java/util/zip/ZipException.<init>(24)
at java/util/zip/ZipOutputStream.putNextEntry(201)
at sun/tools/jar/Main.create(261)
at sun/tools/jar/Main.run(97)
at sun/tools/jar/Main.main(524)
#jar will also bomb when extracting from a compressed archive
mo(/tmp/mo/tcljava1.1b1/unix)% /tmp/mo/install_kaffe/bin/jar -xf Test.jar Test.class
java.io.IOException: LOC header signature bad
at java/lang/Throwable.<init>(37)
at java/lang/Exception.<init>(21)
at java/io/IOException.<init>(22)
at java/util/zip/ZipInputStream.getNextEntry(37)
at sun/tools/jar/Main.extract(373)
at sun/tools/jar/Main.run(106)
at sun/tools/jar/Main.main(524)
I hope that helps
mo dejong
dejong at cs.umn.edu
More information about the kaffe
mailing list