Hi, Richard
The problem is caused by wrong path separator used for bootclasspaht.
Therefore those .jar files specified in the bootclasspath are not loaded.
Different OS uses different path.separator. For example UNIX uses ":" and
Windows uses ";". I think that you are using Windows.
It should work if you use:
D:\xalan-j_2_5_0\bin>java
-Xbootclasspath/p:xalan.jar;xml-apis.jar;xalansamples.jar;xercesImpl.jar
DOM2DOM
We need update our document.
Thanks,
Christine Li
XSLT Development
IBM Toronto Lab
Tel: (905)413-2601
Email: [EMAIL PROTECTED]
Richard Lin
<[EMAIL PROTECTED] To: [EMAIL PROTECTED]
o.com> cc:
Subject: DOM2DOM
NoSuchMethodError?
05/28/2003 04:25
AM
Dear all,
I just downloaded xalan_2.5 and tryied to run DOM2DOM from sample
directory, but failed with the following exception... This also
happened whenever I run DOMSerializer ...
D:\xalan-j_2_5_0\bin>java -Xbootclasspath/p:xalan.jar:
xml-apis.jar:xalansamples.jar:xercesImpl.jar DOM2DOM
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.xml.utils.TreeWalker.<init>(Lorg
/xml/sax/ContentHandler;Lorg/apache/xml/utils/DOMHelper;)V
at
org.apache.xml.serializer.ToStream.serialize(ToStream.java:255)
at DOM2DOM.main(DOM2DOM.java:134)
It works find for SAX2SAX. I read the FAQ from the web site, but could
not find the right answer for the above exception.
Anyone can help give me a hint about what is wrong here?
Thanks!
__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com