i keep getting " No suitable driver found for jbdc:mysql://localhost:3306/db_catal".
I have put MySQL connector in the buildpath and also in lib folder of web-inf. Why am I still getting this error? Voici l'image
code :
package dao;
import java.sql.*;
public class SingletonConnection {
private static Connection connection ;
static {
try {
Class.forName("com.mysql.jdbc.Driver");
connection=DriverManager.getConnection
("jbdc:mysql://localhost:3306/db_catal","root","");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static Connection getConnection() {
return connection ;}
}