954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Mysql connector

Hi all,

am using eclipse IDE.I want to connect mysql database with jsp/servlet for that i want to add mysql j/ connector. I added properties -> Java build path-> Add External jar file but still it calls the exception Driver not found "com.mysql.jdbc.Driver".

Am not filmier with Eclipse any one pls help me...

anand01
Posting Whiz in Training
225 posts since Aug 2010
Reputation Points: 12
Solved Threads: 20
 

You need to add it to the classpath in the run configurations, or as a library in the project properties. The "build path" is only for compiling, and for that you don't the MySQL driver.

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

thanks but can U tel me how to add that

anand01
Posting Whiz in Training
225 posts since Aug 2010
Reputation Points: 12
Solved Threads: 20
 

Cna any one telt me how can I add mysql connector in eclipse for web project

Thanks in advance

anand01
Posting Whiz in Training
225 posts since Aug 2010
Reputation Points: 12
Solved Threads: 20
 

Uhm, by going to the project menu, choosing properties, then going to the library tab and adding the jar?

Or going to the run menu, choosing run configurations, choosing the "task" for the class, choosing the classpath tab, and adding it?

masijade
Industrious Poster
Moderator
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
 

Cna any one telt me how can I add mysql connector in eclipse for web project

Thanks in advance


Hi,

You could try the following:
Create project sayTest.Right-click on Test and navigate to Build Path then on to Add Libraries.Click on User Library to select it then click Next.Click on User Libraries.. button, then click on New and provide a name for instance, DBLibrary.Click on Add JARS button as it is now enabled and then browse to where you have mysql connector jar saved(if you don't have it,you have to download it first).Finally click on OK and then FINISH.I hope this helps...

dangari
Junior Poster in Training
73 posts since Aug 2009
Reputation Points: 10
Solved Threads: 3
 

thanks masijade, Now It is working fine.. thanks a lot

anand01
Posting Whiz in Training
225 posts since Aug 2010
Reputation Points: 12
Solved Threads: 20
 

thanks dangari

anand01
Posting Whiz in Training
225 posts since Aug 2010
Reputation Points: 12
Solved Threads: 20
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You