Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ZipException when trying to run Saxon on UNIX

 
Jill Smythe
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to run Saxon7.8 on an XML document (StreamAM.xml) with an XSL
stylesheet (StatusStream.xsl) in the following way:
/opt/java_1.4.1/bin/java -jar
/usr/dev/psoft/ps8common/saxon/saxon7.jar StatusAM.xml StatusStream.xsl
> StatusAM.htm
but keep getting the following ZipException:

I am working on UNIX with Weblogic6.1 web server and am really not sure why this is occurring -- it works fine when run on Windows...? Does anyone know Saxon or have any suggestions as to why this might be occurring? I'm pulling my hair out.
Thanks in advance,
Jill
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try running
/opt/java_1.4.1/bin/jar -tf /usr/dev/psoft/ps8common/saxon/saxon7.jar
If it throws the same exception, the .jar file must be corrupted.
 
Jill Smythe
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lasse,
Thanks for your reply. I tried executing as you suggested and got *slightly* different error:

Would you suggest that the jar file is corrupted? What is the -tf option?
Any suggestions will help!
Thanks again,
Jill
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the file is corrupted and you need to download it again from somewhere.
The "t" option tells jar to display the contents of a .jar file, and the "f" options tells jar that the following argument is the .jar file itself
 
Jill Smythe
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Lasse,
Thanks a lot for your help -- As you suggested, the jar file was corrupted and the problem was fixed by re-intalling it.

Thanks again!
Julie
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic