I am extremely sorry for bothering you guys again and again, but unfortunately my DOm Sample Counter.java still does not run.

I tried to to run it with the following command but it produces errror:

java -cp ".:~/xerces-2_4_0/build/xercesImpl.jar:~/xerces-2_4_0/build/xml-apis.jar" dom.Counter ~/xerces-2_4_0/data/personal.xml
error: Unable to instantiate parser (dom.wrappers.Xerces).


I also tried adding xercesSamles.jar and /build/src to class path but it still gives the above error.

I do not have Xerces.class. I tried to compile Xerces.java by giving all kind of classpath options including build/src and some jar files as following:

% javac -classpath .:~/xerces-2_4_0/build/xercesImpl.jar:~/xerces-2_4_0/build/xml-apis.jar:~/xerces-2_4_0/build/src dom/wrappers/Xerces.java

But it always generates the following errors:

dom/wrappers/Xerces.java:62: package org.apache.xerces.dom does not exist
import org.apache.xerces.dom.TextImpl;
^
dom/wrappers/Xerces.java:63: package org.apache.xerces.parsers does not exist
import org.apache.xerces.parsers.DOMParser;


I do not understand what I am doign wrong. I would be very gratefull for help in this mattter.

Thank you very much.

Fatima


From: "Christopher Ebert" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: <[EMAIL PROTECTED]>
Subject: RE: dom.Counter (parser doesnt instantiates)
Date: Thu, 26 Jun 2003 12:38:13 -0700


Hi,

I think what was meant was it's not on your classpath. Easiest is probably to add them on the command line when you invoke java (java -cp "build/xercesImpl.jar;build/xml-apis.jar" ...).

Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to