File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes No Suitible Driver Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "No Suitible Driver Error" Watch "No Suitible Driver Error" New topic
Author

No Suitible Driver Error

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Here is my code:

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


GenRocket - A Test Data Generation Platform
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

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
Access to the Oracle database using Java Applets
ClassNotFoundException generated!
SQLException: [Microsoft][ODBC Driver Manager]
Class.forName() for drive using Oracle 8i
Error when not in Main()