> I  also tried adding xercesSamles.jar and /build/src to class path but it

> still gives the above error.

xercesSamples.jar needs to be there. (You typed xercesSamles.jar, where a
'p' is missing. Hope that's not the cause.) (If you downloaded the jars
from apache,) open xercesSamples.jar, you'll see that
dom.wrappers.Xerces.class is there.

So I agree with Endre in that it must be a problem of how you setup the
classpath, but not a Xerces problem. Millions of people did what you tried
to do, and they succeeded. :-)

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                
                                                
                      "Fatima Ashfaq"                                           
                                                
                      <[EMAIL PROTECTED]        To:       [EMAIL PROTECTED]     
                                      
                      ail.com>                 cc:                              
                                                
                                               Subject:  RE: dom.Counter 
(parser doesnt instantiates)                           
                      06/26/2003 06:42                                          
                                                
                      PM                                                        
                                                
                      Please respond to                                         
                                                
                      xerces-j-user                                             
                                                
                                                                                
                                                
                                                                                
                                                



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