This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 9915
    
158

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can not open Zip files generated by java.util.zip using Java 1.5 64 bit
 
Similar Threads
64-bit and 32-bit
Java in 64 bit Linux
64 bit OS
large file support
Unable to execute JNI in a 64 bit machine.