Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jar file not extracted

 
Mani Raju
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • 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.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • 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: 46
  • Mark post as helpful
  • send pies
  • 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: 42968
73
  • Mark post as helpful
  • send pies
  • 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: 46
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic