Menu

No suitable driver

Help
2004-07-24
2013-03-07
  • Nobody/Anonymous

    Hi everyone,

    I am having trouble to create a connection.

    This is what I have:

    Class drver = Class.forName("org.sourceforge.jxdbcon.JXDBConDriver");
                Connection cn = DriverManager.getConnection("jdbc:postgresql:net//192.168.0.1/testdb","test","testi");
                Statement stmt = cn.createStatement();

    and I am getting:

    java.sql.SQLException: No suitable driver
        at java.sql.DriverManager.getConnection(DriverManager.java:532)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at timer.TimerTester.main(TimerTester.java:22)

    Any help would be greatly appreciated.

    Thanks

     
    • Nobody/Anonymous

      I have the same trouble.  I have the jar for the 1.0 release in my classpath.  I have run java with -verbose and see JXDBConDriver is being loaded.  I have looked everywhere I know to find the trouble but cannot find a solution.

       

Log in to post a comment.