Hello Fatima

Your problem is more of a java issue, then a xercers issue. When and if you got 
time for it, I'll recommend you to get a deeper understanding on how java 
runtime picks up needed information (it's well worth it) i.e classpath issues. 
From what I remember, all you need from Xerces, to run the sample (if 2.4.0 
xerces) that is XercesImpl.jar on your classpath. Both the TextImpl and the 
DOMParser are in that jar file. Since they are messaged missing, the 
XercesImpl.jar is not on your classpath properly, or it's buildt (compiled) 
wrong.

Why bother building...why don't you just download the precompiled jar files 
from Apache, and put the XercesImpl.jar on the classpath. Further, why bother 
running the samples...they are more for opening, and understanding the 
implementation of the xerces stuff....how it's used.

Regards

Endre Furnes
----- Original Message ----- 
From: "Fatima Ashfaq" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 27, 2003 12:42 AM
Subject: RE: dom.Counter (parser doesnt instantiates)


> 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]
> 


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

Reply via email to