Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    1

    Unanswered: Problem with pvjdbc2.jar

    Hello!
    I'm trying to connect to a PervasiveSQL 9 Server but I fail.
    The driver that I use is pvjdbc2.jar (pvjdbc2x.jar might be needed).

    Here is my code
    Class.forName("com.pervasive.jdbc.v2.Driver");
    String url = "jdbc ervasive://database_host_name:1583/source_name";
    DriverManager.getConnection(url, username, password);

    But here is the stacktrace of the exception that it throws

    Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/pervasive/pscs/Manager
    at com.pervasive.jdbc.lna.LNAAbstractSession.handshak e(LNAAbstractSession.java:111)
    at com.pervasive.jdbc.lna.LNASocketSession.handshake( LNASocketSession.java:74)
    at com.pervasive.jdbc.v2.Connection.<init>(Connection .java:81)
    at com.pervasive.jdbc.v2.Driver.connect(Driver.java:5 7)
    at java.sql.DriverManager.getConnection(DriverManager .java:525)
    at java.sql.DriverManager.getConnection(DriverManager .java:171)
    at SMS.getClients(SMS.java:275)
    at SMS.actionPerformed(SMS.java:327)
    at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:1849)
    at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2169)
    at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:234)
    at java.awt.Component.processMouseEvent(Component.jav a:5488)
    at javax.swing.JComponent.processMouseEvent(JComponen t.java:3126)
    at java.awt.Component.processEvent(Component.java:525 3)
    at java.awt.Container.processEvent(Container.java:196 6)
    at java.awt.Component.dispatchEventImpl(Component.jav a:3955)
    at java.awt.Container.dispatchEventImpl(Container.jav a:2024)
    at java.awt.Component.dispatchEvent(Component.java:38 03)
    at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4212)
    at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:3892)
    at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:3822)
    at java.awt.Container.dispatchEventImpl(Container.jav a:2010)
    at java.awt.Window.dispatchEventImpl(Window.java:1774 )
    at java.awt.Component.dispatchEvent(Component.java:38 03)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java: 463)
    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:110)

    Maybe I need other jar files.
    Please help!
    I've scratched my head until it's raw!
    Wairing for reply.........
    Thank you!
    Fedai

  2. #2
    Join Date
    Dec 2001
    Posts
    1,109
    Provided Answers: 4
    You'll need PVJDBC2.JAR, PVJDBC2X.JAR, and JPSCS.JAR. One other thing that
    Mirtheil Software
    Certified Pervasive Developer
    Certified Pervasive Technician
    Custom Btrieve/VB development
    http://www.mirtheil.com
    I do not answer questions by email. Please post on the forum.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •