0

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

i am getting this error after executing apache in Eclipse helios and i am using MYSQLyog ultimate

please help...how to remove this error...??

jmj
  • 237,923
  • 42
  • 401
  • 438

2 Answers2

3

There are several ways to solve this issue however, this is generally the easiest.

  1. Copy the MySQL driver to your project in eclipse. It is a jar file that comes with the MySQL driver: MySQL Driver
  2. Right click on the jar and select 'Build Path' -> 'Add to Build Path'

That should do it. You might have to 'clean' you project (Project->Clean...).

jzd
  • 23,473
  • 9
  • 54
  • 76
Chris J
  • 9,164
  • 7
  • 40
  • 39
2

You need to add MySql jdbc driver in your classpath

jmj
  • 237,923
  • 42
  • 401
  • 438