aspose file tools*
The moose likes JDBC and the fly likes No suitable driver found for jdbc:oracle Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "No suitable driver found for jdbc:oracle" Watch "No suitable driver found for jdbc:oracle" New topic
Author

No suitable driver found for jdbc:oracle

Ilo Nato
Greenhorn

Joined: Oct 16, 2009
Posts: 6
Hi. Trying to make connection between Oracle db (Oracle 10g express) and java. But so far no good results.
i am getting this error. No suitable driver found for jdbcracle....

It is like this when you click button it fills the table with data (doing it for only test.)

Here is the code


I think the problem is DB name but i am not sure.
I just made the tables in Oracle. i couldnt see any Database name or like...

Any help is appreciated.
regards
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 515
Hi,
Uncomment the "Class.forName" line.
This would load the JDBC driver if it is appropriately put in the CLASSPATH.

Regards
amit
Fatih Keles
Ranch Hand

Joined: Sep 01, 2005
Posts: 182
amit punekar wrote:Hi,
Uncomment the "Class.forName" line.
This would load the JDBC driver if it is appropriately put in the CLASSPATH.

Regards
amit


Plus



you should specify the SID after port.

But the problem is actually driver manager can not find oracle driver.
Ilo Nato
Greenhorn

Joined: Oct 16, 2009
Posts: 6
It works now.
I had to add ojdbc14.jar to library of the project.
And have the Class.forName("oracle.jdbc.driver.OracleDriver"); in try and catch.

Thanks all..
 
Don't get me started about those stupid light bulbs.
 
subject: No suitable driver found for jdbc:oracle