Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No Suitible Driver Error

 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic