Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse suddenly can't find mysql driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse suddenly can Watch "Eclipse suddenly can New topic
Author

Eclipse suddenly can't find mysql driver

Mike Southgate
Ranch Hand

Joined: Jul 18, 2003
Posts: 183
I'm reatively new to eclipse, but I had it working for a few weeks with mysql.
Suddenly, my code cannot load the database driver for mysql, ie

Class.forName("comm.mysql.jdbc.Driver").newInstance();

throws an exception.

I must have done something to eclipse to make this happen but I'm not sure what.

When I first set up mysql with eclipse I copied the mysql-connector-java-3.0.14-production-bin.jar file into the lib\ext directory of my SDK and it's still there. I've gone into the project=>properties=>java build path=>libraries and it's there.

Could someone give me some pointers on how to track down the problem?

I suspect it's related to my making eclipse remember my decision with respect to running even when compile errors are present because it was working until I accidently hit the wrong button in haste. This was inadvertent - how can I reverse it?

Any suggestions would be appreciated.

ms


ms<br />SCJP, SCJD
 
Consider Paul's rocket mass heater.
 
subject: Eclipse suddenly can't find mysql driver