Skip to content
Advertisement

Unable to load jdbc driver eclipse

I get the following error while trying to load MySQL Driver:

JavaScript

Th relevant code is:

JavaScript

I am using eclipse and here are the settings(please see the added jar in classpath):

enter image description here

What else am I missing?

EDIT: Run time configrations:

enter image description here

Advertisement

Answer

You have included mysql jdbc drivers in build path of your project, which is not same as runtime path.

Check your runtime classpath by going to Run -> Run Configurations and select your application configuration. Check the classpath setting there.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement