Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2006, 02:51 AM
Authorized User
 
Join Date: Jun 2006
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
Default Exception Error While Running XSL.Files

Dear Team,
I have generated XSL files which is fully based on XSLT 2.0, and I execute it thru command line. If i use
C:\>java -jar C:\saxon\saxon8.jar C:\ssst\manualsax\othello.xml C:\ssst\xslt\main.xsl

work perfectly.If i use
C:\>java net.sf.saxon.Transform C:\saxon\saxon8.jar C:\ssst\manualsax\othello.xml C:\ssst\xslt\main.xsl

Gives Error
Exception in thread "main" java.lang.NoClassDefFoundError: net/sf/saxon/Transform

Any help would be appreciatable.

Thanks and Regards,
RICHBIRD


__________________
Thanks,
Richbird
 
Old June 15th, 2006, 02:58 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

The message java.lang.NoClassDefFoundError from the Java VM can only mean one thing: the class isn't on your classpath.

The command you want is:

java -cp C:\saxon\saxon8.jar net.sf.saxon.Transform C:\ssst\manualsax\othello.xml C:\ssst\xslt\main.xsl


Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Exception in running a program furqanms Java Basics 2 June 21st, 2006 10:39 PM
running jsp from WAR files samarthvn JSP Basics 3 April 2nd, 2006 09:59 PM
Running Jar files in NetBeans Ibn_Aziz JSP Basics 0 May 17th, 2004 01:17 PM
Strange error when running macro in multiple files medaugh Excel VBA 0 September 15th, 2003 11:06 AM
Exception while running BMP ramko J2EE 0 August 5th, 2003 05:27 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.