• 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

ZipException when trying to run Saxon on UNIX

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Villains always have antidotes. They're funny that way. Here's an antidote disguised as a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic