• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jar file not extracted

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, i downloaded xalan-2.7.1.jar file and i added that jar file in specific location. In that same location some other jar files are there and they used successfully in code.
But in the case of newly added jar file i am getting the error like "error in opening Zip" . i am getting error only for newly added jar file but remaining all are accessed in the code flow.
I changed the permissions of that file to 555, and after that i tried to compile. In this case also i am getting the same error.
I could not find the reason for that.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, *is* the file corrupt? Can you list its contents via "jar tf xalan-2.7.1.jar"? If not, download a fresh copy.
 
Mani Raju
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:Well, *is* the file corrupt? Can you list its contents via "jar tf xalan-2.7.1.jar"? If not, download a fresh copy.



Thanks, i extracted that jar file. i found some classed in that but i could not find the required class, And one more thing is at the end i saw error "java.io.EOFException:Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:223)
at java.uti.zip.InflaterInputStream.read(InflaterInputStream.java:141)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:146)
at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:92)
at sun.tools.jar.Main.list(Main.java:863)
at sun.tools.jar.Main.run(Main.java:212)
at sun.tools.jar.Main.main(Main.java:1022)
I think, we are getting error while extracting the jar file.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, so the file is corrupt - delete it and get a fresh copy. Make sure you don't treat it as ASCII anywhere - it's binary data.
 
Mani Raju
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:OK, so the file is corrupt - delete it and get a fresh copy. Make sure you don't treat it as ASCII anywhere - it's binary data.


Thanks, yes i downloaded a fresh copy and added in the required location. NOw it is working.
Thanks Ulf Dittmer.
reply
    Bookmark Topic Watch Topic
  • New Topic