[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Transformation command line Windows vs. Unix

Subject: Re: Transformation command line Windows vs. Unix
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 12 Jan 2009 23:39:39 +0000
Re:  Transformation command line Windows vs. Unix
yep - you'll need at least 1.5, although get 1.6 update 11 as that
contains many performance improvements and (as of update 10) contains
an auto updater to get the latest version for you.

To clear up any / add to the confusion, 1.5 is usually called "Java 5"
and 1.6 is called "Java 6"

Either way, here's a link:


2009/1/12 Ylvisaker, Steve <steve.j.ylvisaker@xxxxxxxxxxxxx>:
> We are running 1.4.2 on the Unix server and 1.6 in Windows. Is 1.4 definitely a problem for us?
> -----Original Message-----
> From: Andrew Welch [mailto:andrew.j.welch@xxxxxxxxx]
> Sent: Monday, January 12, 2009 5:15 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Transformation command line Windows vs. Unix
> Run the command:
> java -version
> on both your windows and unix, and compare the version of java on each.
> It's likely you're running 1.5 on Windows, and 1.4 on your unix box.
> cheers
> andrew
> 2009/1/12 Ylvisaker, Steve <steve.j.ylvisaker@xxxxxxxxxxxxx>:
>> I have a transformation using a Java extension that is now running just fine in windows. (thanks for all the help) My command line is:
>> java -cp c:\saxon\Saxon8.jar;c:\medtronic-jars\FontWidth.jar
>> net.sf.saxon.Transform [inputFile.xml] [stylesheet.xsl]
>> C:\saxon is the folder containing Saxon8.jar C:\medtronic-jars is the
>> folder containing my Java extension in FontWidth.jar
>> My assumption is that the same command line should work with similar syntax in Unix. It does not. I am running the following command line:
>> /home1/maps/tools/Java/bin/sparcv9/java -classpath
>> "/home1/maps/tools/Java-custom/FontWidth.jar:/home1/maps/tools/Saxon8/
>> saxon8.jar" net.sf.saxon.Transform -novw -o [input.xml]
>> [stylesheet.xsl]
>> /home1/maps/tools/Java/bin/sparcv9 containts the java version we want
>> to use /home1/maps/tools/Java-custom contains FontWidth.jar
>> /home1/maps/tools/Saxon8 contains saxon8.jar
>> I'm assuming all the rest of the command line remains the same. We have VERY limited experience with Java, especially in our Unix environment, so we are following the documentation "cookbook style" with very little of our own experience or intuition to rely upon.
>> We receive the following error(s):
>> Exception in thread "main" java.lang.UnsupportedClassVersionError:
>> FontWidth (Unsupported major.minor version 50.0)
>>         at java.lang.ClassLoader.defineClass0(Native Method)
>>         at java.lang.ClassLoader.defineClass(Unknown Source)
>>         at java.security.SecureClassLoader.defineClass(Unknown Source)
>>         at java.net.URLClassLoader.defineClass(Unknown Source)
>>         at java.net.URLClassLoader.access$100(Unknown Source)
>>         at java.net.URLClassLoader$1.run(Unknown Source)
>>         at java.security.AccessController.doPrivileged(Native Method)
>>         at java.net.URLClassLoader.findClass(Unknown Source)
>>         at java.lang.ClassLoader.loadClass(Unknown Source)
>>         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>         at java.lang.ClassLoader.loadClass(Unknown Source)
>>         at
>> net.sf.saxon.Configuration.getClass(Configuration.java:1801)
>> ... and so on
>> Is there something wrong with this command line?
>> Steve
>> Information transmitted by this email is proprietary to Medtronic and is intended for use only by the individual or entity to which it is addressed, and may contain information that is private, privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please delete this mail from your records.
>> To view this notice in other languages you can either select the
>> following link or manually copy and paste the link into the address
>> bar of a web browser: http://emaildisclaimer.medtronic.com
> --
> Andrew Welch
> http://andrewjwelch.com
> Kernow: http://kernowforsaxon.sf.net/

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.