Hi,

I'll try to explain my problem to see if someone can help me:

I have a maven project in eclipse and I want to use Class.forName(dbClass) method to read from a database, so I need to import mysql-connector-java.

In pom.xml I have created a the following dependency:

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.9</version>
<scope>compile</scope>
</dependency>


And I have copied the mysql-connector-java-5.1.9.jar to C:\Users\mysusername\.m2\repository\mysql\mysql-connector-java\5.1.9

But, I still have the error message: Class 'com.mysql.jdbc.Driver' was not found. Bundle 13 does not import package 'com.mysql.jdbc', nor is the package exported by any other bundle or available from the system class loader.

What am I doing wrong?

Thanks in advance!