Transformation command line Windows vs. Unix
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format