I'm writing JDBC code in which I have this import:
import com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException;
While executing I'm getting:
java.lang.ClassNotFoundException: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException
Though I have already added the mysql.jar
in class path. Any solution for this? Do I have to add any other jar
file for this class?