Results 1 to 7 of 7
  1. #1
    Heather is offline Senior Member
    Join Date
    Jun 2007
    Posts
    164
    Rep Power
    8

    Default java.sql.SQLException: No suitable driver

    I have this code and it gives to me this exception
    Java Code:
     
    java.sql.SQLException: No suitable driver
     at java.sql.DriverManager.getConnection(Unknown Source)
     at java.sql.DriverManager.getConnection (Unknown Source)
     at read.main(read.java:24)
    Exception in thread "main" 
    public static final String DRIVER_NAME2 =  ("org.firebirdsql.jdbc.FBDriver");
    //public static final String DATABASE_URL2 = "jdbc:firebirdsql:localhost/3050:/firebird/names.gdb", "sysdba", "masterkey";
    can you help me?

  2. #2
    boy22 is offline Member
    Join Date
    Jul 2007
    Posts
    36
    Rep Power
    0

    Default

    look into the Canvas class and draw your graph that way.

  3. #3
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

    Default

    look into the Canvas class and draw your graph that way.
    I don't think Heather's question is somewhat related to Canvas!!

  4. #4
    boy22 is offline Member
    Join Date
    Jul 2007
    Posts
    36
    Rep Power
    0

    Default

    hehe sorry about that
    The right answer is that you should check the parameters of the connection, maybe there is some mistake. I had the same error and the problem was that I wrote the wrong parameters

  5. #5
    arfatkhan is offline Member
    Join Date
    Jul 2007
    Posts
    9
    Rep Power
    0

    Default

    Hi,

    Have you included jar file required for loading your driver?

  6. #6
    amjhihello is offline Member
    Join Date
    Sep 2010
    Posts
    1
    Rep Power
    0

    Default Please check the way you are entering the DB URL

    Please verify the parameters you are passing in the URL.

    For eg:

    For connecting to your local database which is listening at port 1521 and having sid as xe, following is url:

    url=jdbc:oracle:thin:@localhost:1521/xe


    ~amj

  7. #7
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,225
    Rep Power
    20

Similar Threads

  1. Replies: 2
    Last Post: 06-07-2010, 09:45 AM
  2. Replies: 6
    Last Post: 02-19-2010, 02:57 PM
  3. Replies: 0
    Last Post: 03-21-2008, 02:13 PM
  4. Replies: 0
    Last Post: 12-18-2007, 07:07 PM
  5. Replies: 1
    Last Post: 07-24-2007, 12:58 AM

Posting Permissions

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