Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

installing xerces-j

843834Jan 3 2003 — edited Jan 3 2003
I download Xerces-J-bin.2.2.1.zip as I wanted to parse an xml document using SAX. I ran it on the some pre-existing code and it complied fine but when I ran the program I got the folloing error:

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

My guess is that there is something wrong with the class path. The two jar files that I added to the class path are xercesImpl.jar and xmlParserAPIs.jar. Previous versions of the Apache Xerces parser had just one jar file to add to the class path (i think it was paser.jar). Is there anything else I need to add to my classpath? I added the working directory (in which my program resides) but that didn't seem to make much sense, and it didn't help.

any ideas?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2003
Added on Jan 3 2003
1 comment
218 views