This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JDBC and the fly likes No Suitible Driver Error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "No Suitible Driver Error" Watch "No Suitible Driver Error" New topic
Author

No Suitible Driver Error

Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

Here is my code:

It compiles and then when I run it I just get an SQLException: No Suitable Driver
Help anyone?
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1506
I am guessing it just can't find the driver for mySQL. It's either your class path is not set correctly or you have not downloaded the drivers.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Gregg Bolinger
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

I had figured it out over the weekend. I did download the drivers and put them in the appropriate folders. However, my JAVA Editor was over-riding my CLASSPATH that I had set. So I had to set the CLASSPATH inside my editor.
All fixed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No Suitible Driver Error
 
Similar Threads
Class.forName() for drive using Oracle 8i
Access to the Oracle database using Java Applets
ClassNotFoundException generated!
SQLException: [Microsoft][ODBC Driver Manager]
Error when not in Main()