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
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
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
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