Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Zip Exception  RSS feed

 
Tejo Kumar
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting "java.util.zip.ZipException: oversubscribed dynamic bit lengths tree" , when I am trying to retreive files from a zip file. I am using jdk1.5, windowsXP professional.
The part of my code is,

zipStream is ZipInputStream.

do{
ZipEntry zipEntry = zipStream.getNextEntry();
if(zipEntry == null)break;
System.out.println(zipEntry.getName());
}while(true);

Can anyone help me solving this problem!
Thanks in advance,
-Tejo Kumar
 
payal agrawal
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the URL below:

How to read files within a zip file
http://www.java-tips.org/content/view/601/2/
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Tejo.

If what you want is to know all the zip file entries is as simple as:

 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now, what you seem wanting to do is....



I hope it helps.

[ January 11, 2006: Message edited by: Edwin Dalorzo ]
[ January 11, 2006: Message edited by: Edwin Dalorzo ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!