Good morning. You're confusing PATH and CLASSPATH. Instead of this...
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 think you need this: PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\j2sdk1.4.0_02\bin CLASSPATH=C:\xerces-2_2_1\xmlParserAPIs.jar;C:\xerces-2_2_1\xercesImpl.jar;C :\j2sdk1.4.0_02\lib\tools.jar; Hope this helps, Simon -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 03 January 2003 08:54 To: [EMAIL PROTECTED] Subject: using xerces-j-bin-2.2.1 (SAX) 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
