Help trace run time error

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Asad Khan

    Help trace run time error

    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:\Progra m Files\DrJAVA
    org.jdom.JDOMEx ception: SAX2 driver class
    org.apache.xerc es.parsers.SAXP arser not found: SAX2 driver class
    org.apache.xerc es.parsers.SAXP arser not found
    at org.jdom.input. SAXBuilder.buil d(SAXBuilder.ja va:323)
    at org.jdom.input. SAXBuilder.buil d(SAXBuilder.ja va:340)
    at database.Databa se.interpretCon fig(Database.ja va:84)
    at database.Databa se.connect(Data base.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.


  • SPG

    #2
    Re: Help trace run time error

    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" <aik__1@hotmail .com> wrote in message
    news:hvYmb.7746 5$h61.52644@new s01.bloor.is.ne t.cable.rogers. com...[color=blue]
    > 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:\Progra m Files\DrJAVA
    > org.jdom.JDOMEx ception: SAX2 driver class
    > org.apache.xerc es.parsers.SAXP arser not found: SAX2 driver class
    > org.apache.xerc es.parsers.SAXP arser not found
    > at org.jdom.input. SAXBuilder.buil d(SAXBuilder.ja va:323)
    > at org.jdom.input. SAXBuilder.buil d(SAXBuilder.ja va:340)
    > at database.Databa se.interpretCon fig(Database.ja va:84)
    > at database.Databa se.connect(Data base.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.
    >
    >[/color]


    Comment

    Working...