did you import org.xml.sax.helpers.ParserFactory; ??
"Aspi D. Engineer" <[EMAIL PROTECTED]> on 04/04/2001 01:35:21 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: Barry Nobel/IN/FIS)
Subject: HELP - Class not found:
org.apache.xerces.parsers.SAXParser
Hi,
I am unable to solve this for a long time now. I am trying to run the sample
program "sax.SAXCount" and keep getting the following error:
java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:314)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:124)
at
org.xml.sax.helpers.ParserFactory.makeParser(ParserFactory.java:129)
at sax.SAXCount.print(SAXCount.java:128)
at sax.SAXCount.main(SAXCount.java, Compiled Code)
Al that I have done so far is install xerces-1.3.1. Like the documentation
on the Apache site says (http://xml.apache.org/xerces-j/domcount.html), I
have created a batch file as follows:
cd c:\aspi\dnload\xerces-1_3_1
java -cp
c:\aspi\dnload\xerces-1_3_1;c:\aspi\dnload\xerces-1_3_1\xerces.jar;c:\aspi\d
nload\xerces-1_3_1\xercesSamples.jar sax.SAXCount data/personal.xml
Note that Xerces is installed in "c:\aspi\dnload\xerces-1_3_1"
WHAT AM I DOING WRONG? I know its something stupid.
Thanks
Aspi Engineer
[EMAIL PROTECTED]
---------------------------------------------------------------------
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]