• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.util.zip.ZipException  RSS feed

 
Sandip Chatterjee
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear folks, encountered a 'ZipException' in my App while trying to click on a download link which should instead prompt a window and ask to save the file.

Please suggest.
ZipException.JPG
[Thumbnail for ZipException.JPG]
ZipException
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without seeing what your code is actually doing it's hard to give specific help.
The exception is because you are trying to write an empty zip file and a zip file must contain at least one entry.
 
Sandip Chatterjee
Greenhorn
Posts: 21
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The zip file is actually not empty. It has a folder inside it that contains a .txt file.
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandip Chatterjee wrote:The zip file is actually not empty. It has a folder inside it that contains a .txt file.

Not according to the exception. The program is trying to write a zip file and failing so how do you know it contains one file?

Again, without seeing the code and/or getting more details from you it's hard to give specific help.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!