Whose Error Is It?

Java printed this

Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
What it meansThe JVM could not find the MySQL JDBC driver class on the classpath when your code or framework tried to load it at runtime.
The first thing to checkAdd the mysql-connector-j dependency to your build; with Connector/J 8 or later the class is com.mysql.cj.jdbc.Driver, so update the name too.

More from Java

All 75 errors

Whose Error Is It? · Status Menu · Back to the bar