I am facing a mind boggling error when I try to connect JDBC from Java program in Eclipse as below:
public class DbAccess {
static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
static final String DB_URL = "jdbc:mysql://";
private String userName;
private String password;
public Connection conn;
public Statement stmt;
public boolean dbLogin(String name, String passwd) {
this.userName = name;
this.password = passwd;
String host = "localhost", dbschema = "s15g108";
boolean connStatus = false;
try {
// Registering the JDBC Driver
Class.forName(JDBC_DRIVER);
try {
In the above code, I am getting an error as below when executing "Class.forName(JDBC_DRIVER); statement.

I have placed the JAR file already in the Project build path as shown below:

The image below shows the snapshot of jar file being referenced for the project:

Can you please help as what has gone wrong here? I am stuck at this error and not able to proceed at all.