Hallo Arthur. Es ist vollig Wurst, wo und wie Du xerces installiert hast. Es mu� in CLASSPATH stehen. Und zwar die JAR-Achive und nicht nur das Verzeichnis, wo Xerces.jar liegt. (Dies gilt f�r jede Library in JAVA und nicht nur f�r Xerces).
Also wenn xervces.jar in c:\jar\xerces.jar liegt, dann
javac -classpath %CLASSPATH%;c:\jar\xerces.jar test.java
Gr��
David
"Arthur"
<[EMAIL PROTECTED] An: <[EMAIL PROTECTED]>
.de> Kopie:
Thema: Newbie in Java and XML
18.09.01
12:11
Bitte
antworten an
xerces-dev
Hi!
I'm a newbie in XML and have only a little experience in Java. I have JDK
under Windows Me and recently tried to install the Xerces parser. When I
try to compile a Java Programm, that reads an XML-Document (the Java
Programm is from a tutorial) with "javac test.java" I get plenty of errors.
It compiles with: "javac -classpath c:\xerces\xerces.jar test.java", but it
still doesn't run with "java -classpath c:\xerces\xerces.jar test" instead
there is a Exception: java.lang.NoClassDefFoundError: test. I guess I have
not installed the Xerces parser properly / in what JDK directory should I
install it?
thanks for your help
