Results 1 to 7 of 7
- 07-10-2007, 12:02 AM #1
Senior Member
- Join Date
- Jun 2007
- Posts
- 164
- Rep Power
- 6
java.sql.SQLException: No suitable driver
I have this code and it gives to me this exception
can you help me?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";
- 07-14-2007, 04:22 PM #2
Member
- Join Date
- Jul 2007
- Posts
- 36
- Rep Power
- 0
look into the Canvas class and draw your graph that way.
- 07-14-2007, 05:11 PM #3
I don't think Heather's question is somewhat related to Canvas!!look into the Canvas class and draw your graph that way.
- 07-14-2007, 05:39 PM #4
Member
- Join Date
- Jul 2007
- Posts
- 36
- Rep Power
- 0
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
- 08-01-2007, 11:53 AM #5
Member
- Join Date
- Jul 2007
- Posts
- 9
- Rep Power
- 0
Hi,
Have you included jar file required for loading your driver?
- 09-01-2010, 09:42 AM #6
Member
- Join Date
- Sep 2010
- Posts
- 1
- Rep Power
- 0
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
- 09-01-2010, 11:29 AM #7
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
Similar Threads
-
java.sql.SQLException: Exhausted Resultset
By boy22 in forum JDBCReplies: 2Last Post: 06-07-2010, 08:45 AM -
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
By ljustiniano in forum New To JavaReplies: 6Last Post: 02-19-2010, 01:57 PM -
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
By haneeshrawther in forum Advanced JavaReplies: 0Last Post: 03-21-2008, 01:13 PM -
how to connet to MS SQL in java by using net.sourceforge.jtds.jdbc driver
By cambo in forum JDBCReplies: 0Last Post: 12-18-2007, 06:07 PM -
SQLException: Unable to connect to any hosts due to exception
By simon in forum JDBCReplies: 1Last Post: 07-23-2007, 11:58 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks