Onkar Dhane
Onkar Dhane

Reputation: 11

Why am I getting a java.lang.ClassNotFoundException?

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...??

Upvotes: 0

Views: 811

Answers (2)

Chris J
Chris J

Reputation: 9252

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...).

Upvotes: 3

Jigar Joshi
Jigar Joshi

Reputation: 240870

You need to add MySql jdbc driver in your classpath

Upvotes: 2

Related Questions