You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Sean Champ <s-...@postoffice.pacbell.net> on 2000/04/12 20:51:16 UTC

( TreeViewer | treeWalker ) - problems w/ init

hi.

I tried the batch-file given below, and kept getting 
" java.lang.NoClassDefFoundError: dom/TreeViewer "

(or whatever class that I was trying to invoke in the
batch-file, when I tried some others.)


version info:

ms-w98
xerces-J-bin.1.0.3
jdk 1.2.2


here's the batch-file that was bringing the errors:

(mailing this might be putting newlines in the wrong places, btw)

%%%%

set PATH=%JAVABIN%
set
TARGET=H:\plaza\workshop\build\help\org\w3\WD-XSL-20000327\src\XML\WD-XSL-2000-03-27.xml
set
XERCMAIN=H:\plaza\neighborhood\org\apache\xml\xerces\xerces-J-bin.1.0.3
set classpath=%XERCMAIN%\xerces.jar;%XERCMAIN%\xercesSamples
cd %XERCMAIN%
java dom.TreeViewer %TARGET%
:: this didn't work either:
:: java %XERCMAIN%\ui.DOMTree %TARGET%


%%%%



the actual text of the error-message:
%%%%

Exception in thread "main" java.lang.NoClassDefFoundError:
dom/TreeViewer

%%%%



any suggestions?




( thanks )


-- sean

RE: ( TreeViewer | treeWalker ) - problems w/ init

Posted by Adam Goodman <ad...@rad-solutions.demon.co.uk>.
Sean:

(newbie here - let the reader beware!)

FWIW, and it's probably just a typo in your email, but the line:

> set classpath=%XERCMAIN%\xerces.jar;%XERCMAIN%\xercesSamples

should read:

set classpath=%XERCMAIN%\xerces.jar;%XERCMAIN%\xercesSamples.jar
                                                            ^^^^

BTW, I have xerces-1_0_2, and the invocation:

> java dom.TreeViewer %TARGET%

should be:

java ui.TreeViewer %TARGET%
     ^^

These problems would cause the behaviour you describe.  Hope this helps,
regards,

Adam.


-----Original Message-----
From: Sean Champ [mailto:s-champ@postoffice.pacbell.net]
Sent: 12 April 2000 19:51
To: xerces-j-dev@xml.apache.org
Subject: ( TreeViewer | treeWalker ) - problems w/ init


hi.

I tried the batch-file given below, and kept getting
" java.lang.NoClassDefFoundError: dom/TreeViewer "

(or whatever class that I was trying to invoke in the
batch-file, when I tried some others.)


version info:

ms-w98
xerces-J-bin.1.0.3
jdk 1.2.2


here's the batch-file that was bringing the errors:

(mailing this might be putting newlines in the wrong places, btw)

%%%%

set PATH=%JAVABIN%
set
TARGET=H:\plaza\workshop\build\help\org\w3\WD-XSL-20000327\src\XML\WD-XSL-20
00-03-27.xml
set
XERCMAIN=H:\plaza\neighborhood\org\apache\xml\xerces\xerces-J-bin.1.0.3
set classpath=%XERCMAIN%\xerces.jar;%XERCMAIN%\xercesSamples
cd %XERCMAIN%
java dom.TreeViewer %TARGET%
:: this didn't work either:
:: java %XERCMAIN%\ui.DOMTree %TARGET%


%%%%



the actual text of the error-message:
%%%%

Exception in thread "main" java.lang.NoClassDefFoundError:
dom/TreeViewer

%%%%



any suggestions?




( thanks )


-- sean

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org