Hello,
I’m trying to get a MyEclipse Maven project working. The project uses JDBC properties that need to be set as JRE System Properties. This is for connection to a MySQL database. The project is not intended to be run within an app-server.
I have followed the MyEclipse tutorial instructions and imported the MySQL jar file into the Maven repository and modified the POM.xml file accordingly;-
<dependency>
<groupId>mysql-connector-java</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.0.8</version>
</dependency>
After compiling the project I’ve configured the system properties as VM arguments within a run configuration (i’m not sure if that was the right way to go about it);-
${-Ddatasource.Datasource.driver}
${-Ddatasource.Datasource.url}
${-Ddatasource.Datasource.user}
${-Ddatasource.Datasource.password}
When running the target class, I get the error;-
java.lang.NoClassDefFoundError: com/mysql/jdbc/driver
After doing the above, I can’t figure why. Any ideas?
Thanks
A.P