[kaffe] Jar files in 1.1.3?

Ito Kazumitsu ito.kazumitsu at hitachi-cable.co.jp
Wed Dec 10 22:29:03 PST 2003


In message "Re: [kaffe] Jar files in 1.1.3?"
    on 03/12/10, Casey Marshall <rsdio at metastatic.org> writes:

> The problem is with kaffe.tools.jar.Jar. Line 1053.

I have not studied kaffe/tools/jar/Jar.java yet.  But I could
reproduce the error.  It seems that this error occurs when
the files to be archived are not directories but ordinary files.

bash$ ls -al Test.class
-rw-rw-r--    1 ito      ito           748 Nov 25 17:15 Test.class
bash$ jar cvf 0.jar Test.class
java.util.jar.JarException: Attributes cannot be called 'Name'
   at java.util.jar.Manifest.write_attribute_entry (Manifest.java:404)
   at java.util.jar.Manifest.write_entry_attributes (Manifest.java:436)
   at java.util.jar.Manifest.write_individual_sections (Manifest.java:424)
   at java.util.jar.Manifest.write (Manifest.java:325)
   at java.util.jar.JarOutputStream.writeManifest (JarOutputStream.java:98)
   at java.util.jar.JarOutputStream.<init> (JarOutputStream.java:81)
   at kaffe.tools.jar.Jar.createJar (Jar.java:1088)
   at kaffe.tools.jar.Jar.processJar (Jar.java:404)
   at kaffe.tools.jar.Jar.start (Jar.java:64)
   at kaffe.tools.jar.Jar.main (Jar.java:43)
bash$ cp Test.class tmp/
bash$ jar cvf 0.jar tmp
added manifest
adding: tmp/ (in=0) (out=0) (stored 0%)
adding: tmp/Test.class (in=748) (out=418) (deflated 56%)
bash$ jar cvf 0.jar tmp/*.class
java.util.jar.JarException: Attributes cannot be called 'Name'
   at java.util.jar.Manifest.write_attribute_entry (Manifest.java:404)
   at java.util.jar.Manifest.write_entry_attributes (Manifest.java:436)
   at java.util.jar.Manifest.write_individual_sections (Manifest.java:424)
   at java.util.jar.Manifest.write (Manifest.java:325)
   at java.util.jar.JarOutputStream.writeManifest (JarOutputStream.java:98)
   at java.util.jar.JarOutputStream.<init> (JarOutputStream.java:81)
   at kaffe.tools.jar.Jar.createJar (Jar.java:1088)
   at kaffe.tools.jar.Jar.processJar (Jar.java:404)
   at kaffe.tools.jar.Jar.start (Jar.java:64)
   at kaffe.tools.jar.Jar.main (Jar.java:43)
bash$ cd tmp
bash$ jar cvf ../0.jar .
added manifest
adding: ./ (in=0) (out=0) (stored 0%)
adding: ./Test.class (in=748) (out=418) (deflated 56%)




More information about the kaffe mailing list