xsl-list
[Top] [All Lists]

RE: [xsl] Transformation command line Windows vs. Unix

2009-01-12 18:31:22
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(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com] 
Sent: Monday, January 12, 2009 5:15 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] 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(_dot_)j(_dot_)ylvisaker(_at_)medtronic(_dot_)com>:
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



[CONFIDENTIALITY AND PRIVACY NOTICE]

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>