When I run my code for parsing an XML dcument using SAX I get the following 
error...(it complies fine but donesn't run)

"java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
        at org.xml.sax.helpers.XMLReaderFactory.createXMLReader
(XMLReaderFactory.java:121)"

the error in my code is occuring at this line...
XMLReader reader = XMLReaderFactory.createXMLReader(vendorParserClass);

The program doesn't recognize the string vendorParserClass, which is 
initialized to 
"org.apache.xerces.parsers.SAXParser"

My guess is that I messed up in the class path.
I downloaded the file Xerces-J-bin.2.2.1.zip and it created the directory
C:\xerces-2_2_1. The directory contains the files xercesImpl.jar and 
xmlParserAPIs.jar,
which I added to the class path. My class path now contains:

PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\j2sdk1.4.0_02\bin\;
C:\xerces-2_2_1\xmlParserAPIs.jar;C:\xerces-2_2_1
\xercesImpl.jar;C:\j2sdk1.4.0_02\lib\tools.jar;

I'm running windows NT on my computer. Is there anything else I need to add to 
the class path?
I get the same error if I run any other SAX example using Apache Xerces parser.
Could anyone helpe me out?

Thanks

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

Reply via email to