Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
juan velez
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic