It seems that the mysql connection library is not included in the project. Solve the problem by following one of the suggested solutions:
- SOLUTION OF MAJOR PROJECTS
Add the mysql connector dependency to the pom.xml project file:
<dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>5.1.39</version> </dependency>
Here you are all versions: https://mvnrepository.com/artifact/mysql/mysql-connector-java
Add the jar library manually to the project.
Right click on the project -> build path -> configure build path
In the Libraries Tab click Add External Jar and Select your jar.
You can find the zip for mysql-connector here
When creating a project, java throws you an exception because the file (class com.mysql.jdbc.Driver) from the mysql connection library was not found. The solution adds the library to the project, and java finds com.mysql.jdbc.Driver
R9J Jul 05 '13 at 9:00 2013-07-05 09:00
source share