A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
What is this No Suitable Driver exception?
Joined: May 09, 2005
Mar 29, 2006 01:41:00
When I am using the code:
No Suitable Driver
When I am using other driver:
getting the exception
I am writing just simple program trying to connect to Oracle database.
But I am gettign exception with Class.forName() method as specified above.
What might be the problem?
We need to have installed any driver on our machine when we are using connection driver?
What are the basic requirements when we are writing
Please post your ideas.
Joined: Mar 24, 2005
Mar 29, 2006 09:13:00
You certainly need at least a jar in your classpath with the driver classes in it.
Joined: Mar 22, 2005
Mar 29, 2006 09:21:00
In the case of the Oracle driver, you're missing the class in your classpath, as was suggested before. In the case of the JDBC/ODBC bridge, it sounds like the URL you're using to access the DB is incorrect.
Ping & DNS
- my free Android networking tools app
Don't get me started about those stupid
subject: What is this No Suitable Driver exception?
Not Suitable Driver Error
No suitable driver found for oracle:jdbc:thin:@localhost:1521:xe Exception ;Hibernate
Exception in thread "main" java.sql.SQLException: No suitable driver
Registering the drivers
Setting the attribute
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014