Problem w/ installation
Added by Anonymous over 19 years ago
Legacy ID: #3100405 Legacy Poster: karyn1617 (karyn1617)
Hi I am trying to install version 8.4 on my XP platform. I have java version 1.3. I have defined my classpath variable. When I try to run saxon8.jar it gives me this error Exception in thread "main" java.util.zip.ZipException: The e file specified at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source) at java.util.jar.JarFile.<init>(Unknown Source)
Replies (4)
Please register to reply
RE: Problem w/ installation - Added by Anonymous over 19 years ago
Legacy ID: #3100903 Legacy Poster: Michael Kay (mhkay)
Saxon requires JDK 1.4 or JDK 1.5. However, I don't think that's the cause of the problem here, which is usually caused by a much more basic error on the command line. So: first install a more recent JDK. If you still have problems, tell us what you typed on the command line, and where the files are in your directory structure. Michael Kay
RE: Problem w/ installation - Added by Anonymous over 19 years ago
Legacy ID: #3122366 Legacy Poster: Tony Cusack (tcusack)
Hi Michael & Karyn, I'm having the same problem, but with JDK 1.4. Here's my setup: C:\j2sdk1.4.2_04 C:\saxonb8-4 CLASSPATH = .;C:\saxonb8-\saxon8.jar;saxon8.jar PATH= [various irrelevant stuff]; C:\j2sdk1.4.2_04\bin I have hello.xml and hello.xsl at C:\aaa\programming\XSL\saxon8 My DOS command line reads "C:\aaa\programming\XSL\saxon8>java -jar saxon8.jar hello.xml hello.xsl" I get the same msg as Karyn, 'though with some extra information: Exception in thread "main" java.util.zip.ZipException: The system cannot find the file specified at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:112) at java.util.jar.JarFile.<init>(JarFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:65) rgds, Tony.
RE: Problem w/ installation - Added by Anonymous over 19 years ago
Legacy ID: #3122493 Legacy Poster: Michael Kay (mhkay)
This ugly message from Java simply means that it couldn't find the file specified after "-jar". In your case, it means that saxon8.jar wasn't found in directory C:\aaa\programming\XSL\saxon8 Michael Kay
RE: Problem w/ installation - Added by Anonymous over 19 years ago
Legacy ID: #3124696 Legacy Poster: Tony Cusack (tcusack)
Thanks Michael. I can see that now. In my naivete I thought that the PATH and or CLASSPATH variables looked after the location of the java files. I read the phrase "all the files" in Using Saxon from Cmd Line on p.852 of your XSLT 2.0 book as referring to the XML, XSL and output files. I now have success from the command line but am having trouble finding the right string for XML Spy to run a transform for multiple output files. Will persevere and get back with a specific query if ncsry, Tony.
Please register to reply