Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse suddenly can't find mysql driver

 
Mike Southgate
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic