Class name is wrong or classpath is not set for : com.mysql.jdbc.Driver

For ConnectorJ version 8 it is:

com.mysql.cj.jdbc.MysqlDataSource

For older versions, it is:

com.mysql.jdbc.jdbc2.optional.MysqlDataSource

Comments