By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,034 Members | 822 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,034 IT Pros & Developers. It's quick & easy.

Help trace run time error

P: n/a
Hi,

I wrote a few methods in a class, and I am using someone else's code that
interfaces with the database. I created some test classes, and when I run
it, I get the following error:

*********************C:\Program Files\DrJAVA
org.jdom.JDOMException: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:32 3)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:34 0)
at database.Database.interpretConfig(Database.java:84 )
at database.Database.connect(Database.java:53)
....

so on and so forth. I have added JAR files in DR JAVA (the IDE I'm using)
but that doesn't seem to help. Any ideas what's going on?

BTW, I'm running J2SE (1.4.x).

Thanks.
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
SPG
If I am not mistaken, you have to specify the SAX parser you intend to use
by using some Class.forename() method.

Cannot remember the specifics right now but I think you need to do it before
you make any reference to the XML classes..
"Asad Khan" <ai****@hotmail.com> wrote in message
news:hv*******************@news01.bloor.is.net.cab le.rogers.com...
Hi,

I wrote a few methods in a class, and I am using someone else's code that
interfaces with the database. I created some test classes, and when I run
it, I get the following error:

*********************C:\Program Files\DrJAVA
org.jdom.JDOMException: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found: SAX2 driver class
org.apache.xerces.parsers.SAXParser not found
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:32 3)
at org.jdom.input.SAXBuilder.build(SAXBuilder.java:34 0)
at database.Database.interpretConfig(Database.java:84 )
at database.Database.connect(Database.java:53)
...

so on and so forth. I have added JAR files in DR JAVA (the IDE I'm using)
but that doesn't seem to help. Any ideas what's going on?

BTW, I'm running J2SE (1.4.x).

Thanks.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.