aspose file tools*
The moose likes I/O and Streams and the fly likes Can not open Zip files generated by java.util.zip using Java 1.5 64 bit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Can not open Zip files generated by java.util.zip using Java 1.5 64 bit" Watch "Can not open Zip files generated by java.util.zip using Java 1.5 64 bit" New topic
Author

Can not open Zip files generated by java.util.zip using Java 1.5 64 bit

juan velez
Greenhorn

Joined: Sep 08, 2002
Posts: 8
I have a problem and I do not seem to find anything on the web regarding it: I have created an application in Java that creates zip files using java.util.zip. The application was originally developed using JDK 1.5 on a 32-bit Machine and it worked flawlessly. Now the application needs to run on a 64-bit machine (Java's motto: write once run everywhere). The JDK on that machine is the 64-bit version and the application generates the zip files but the problem is that the files can no longer be opened. WinZip/Windows indicate that the file is corrupt (the "corrupt" file has the same size as the file generated on a 32-bit machine). Has anyone encountered the same problem or similar?

Thanks,

Juan
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10059
    
163

WinZip/Windows indicate that the file is corrupt (the "corrupt" file has the same size as the file generated on a 32-bit machine).


Did you try using the 64-bit version of WinZip to open the file?


[My Blog] [JavaRanch Journal]
 
 
subject: Can not open Zip files generated by java.util.zip using Java 1.5 64 bit