File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 10102
    
165

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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can not open Zip files generated by java.util.zip using Java 1.5 64 bit