OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: RE: [docbook-apps] CLASSPATH and Saxon

Hi Tony,

Thanks for your suggestion.

Yes I came to knew that from "Saxonica" website. I think "DocBook XSL: The
Complete Guide Fourth Edition" has outdated information in this regard.

But still sample syntaxes mentioned in the
tnet.xml" are not working properly in my case:

java -cp saxon9he.jar net.sf.saxon.Transform -t -s:samples/data/books.xml
-xsl:samples/styles/books.xsl -o:c:/temp.html

The above syntax not working, whereas if I modified something like below it

java net.sf.saxon.Transform -t -s:C:/saxonhe9-2-1-5j/samples/data/books.xml
-xsl:C:/saxonhe9-2-1-5j/samples/styles/books.xsl -o:c:/temp.html

Original first syntax gives error as follows:

C:\Documents and Settings\007.TECHSETINDIA.000>java -cp saxon9he.jar
net.sf.saxon.Transform -t -s:samples/data/books.xml
 -xsl:samples/styles/books.xsl -o:c:/temp.html
Exception in thread "main" java.lang.NoClassDefFoundError:
Caused by: java.lang.ClassNotFoundException: net.sf.saxon.Transform
        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)
Could not find the main class: net.sf.saxon.Transform.  Program will exit.

Whereas modified second syntax works correctly. Can anyone help me why "-cp"
is not working as expected in "windows XP"?


-----Original Message-----
From: Tony Graham [mailto:Tony.Graham@MenteithConsulting.com] 
Sent: Tuesday, November 09, 2010 3:22 PM
To: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] CLASSPATH and Saxon

On Tue, November 9, 2010 5:53 am, SriKrishnan wrote:
> In my Environmental variable for CLASSPATH has been as follows:
> .;C:\Program
> .jar;L:/catalog.xml;C:\fop-1.0\;
> But when I open command prompt and typed the error message appears as
> below:
> C:\Documents and Settings\007.TECHSETINDIA.000>java
> com.icl.saxon.StyleSheet
> -t
> Exception in thread "main" java.lang.NoClassDefFoundError:
> com/icl/saxon/StyleSheet

You have a mismatch between the Saxon version that you say you want to use
and the Saxon version that you are using.

Saxon 9 uses package names that begin 'net.sf.saxon' and, AFAICT, doesn't
have a 'StyleSheet' class.  In fact, Saxon package names haven't begun
with 'com.icl.saxon' for many years.

It may be that you want the old Saxon 6.5 version, not the newer Saxon 9.


Tony Graham                         Tony.Graham@MenteithConsulting.com
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]