This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 511
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..
 
 
subject: No suitable driver found for jdbc:oracle
 
Similar Threads
Not Suitable Driver Error
Tomcat and Oracle, will i transfer any file?
regarding Drivers
another stupid Oracle JDBC driver question
Jboss 4.2.3 how to change the default datasource to oracle ?