You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
---|
From: Jochen H. <Hoe...@In...> - 2004-09-23 15:31:42
|
On Wednesday 22 September 2004 19:55, Hulse, Michael wrote: > Hi, > =20 > I'm kind of new to using zip in Java so please excuse. > =20 > I have just downloaded jazzlib 0.07 and I am trying to unzip a file that= =20 > I can mount in NetBeans and see it's contents. > =20 > My error is=20 > net.sf.jazzlib.ZipException: Wrong Local header signature: a5a4d This looks like an exe file, probably a self-extracting zip file, which sta= rts with some executable program and after that follows the zip archive. The jazzlib.ZipInputStream can only handle pure zip files without anything in front. I think java.util.zip.ZipInputStream has a similar behaviour. Th= e main reason is that for those self-extracting files one normally seeks to the en= d of=20 the file, where the table of contents is stored, and then seeks back to the= =20 first entry. This is not possible for input stream as they are not seekable. Jochen =2D-=20 Jochen Hoenicke, University of Oldenburg, 26111 Oldenburg, Germany Email: hoe...@in... Tel: +49 441 798 3124 |
From: Hulse, M. <mh...@ca...> - 2004-09-22 17:58:07
|
Hi, I'm kind of new to using zip in Java so please excuse. I have just downloaded jazzlib 0.07 and I am trying to unzip a file that I can mount in NetBeans and see it's contents. My error is net.sf.jazzlib.ZipException: Wrong Local header signature: a5a4d java/lang/Throwable.<init>(Ljava/lang/String;)V+4 (Throwable.java:85) java/lang/Exception.<init>(Ljava/lang/String;)V+1 (Exception.java:33) java/io/IOException.<init>(Ljava/lang/String;)V+1 (IOException.java:38) net/sf/jazzlib/ZipException.<init>(Ljava/lang/String;)V+1 (ZipException.java:70) net/sf/jazzlib/ZipInputStream.getNextEntry()Lnet/sf/jazzlib/ZipEntry;+77(Zip InputStream.java:156) com/cavtel/rswt/CopyIFStoDB400rcl.getZipStream(Lcom/ibm/as400/access/IFSJava File;)Lnet/sf/jazzlib/ZipInputStream;+0 (CopyIF StoDB400rcl.java:343) com/cavtel/rswt/CopyIFStoDB400rcl.copyIFS()V+0 (CopyIFStoDB400rcl.java:80) com/cavtel/Util/DataQueTestMonitorRecl.main([Ljava/lang/String;)V+0 (DataQueTestMonitorRecl.java:25) My code is: try{ zipin = new ZipInputStream(new FileInputStream(_ifsjf.getAbsolutePath())); ZipEntry ze = null; ze = zipin.getNextEntry(); System.out.println("zipin.available(): " + zipin.available()); System.out.println("Zip getName: " + ze.getName()); System.out.println("Zip getCompressedSize: " + ze.getCompressedSize()); System.out.println("Zip getCrc: " + ze.getCrc()); System.out.println("Zip getSize: " + ze.getSize()); System.out.println("Zip isDirectory: " + ze.isDirectory()); System.out.println("Zip toString: " + ze.toString()); } If there is something else I need to do please let me know. If this looks ok then why can NetBeans read it? I'm just stuck. Any help would be appreciated. Thanks, Mike |