Question : jdbc connection programe

I have a programe to connect to the database when I run this programe I am getting this error
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
please help
Code Snippet:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
public class jdbc1 {
 
public static void main(String [] args) {
 
        java.sql.Connection conn = null;
 
        System.out.println("SQL Test");
 
        try {
                Class.forName("org.gjt.mm.mysql.Driver").newInstance();
                conn = java.sql.DriverManager.getConnection(
                        "jdbc:mysql://bhajee/test?user=jtest&password=");
 
        }
        catch (Exception e) {
                System.out.println(e);
                System.exit(0);
                }
 
        System.out.println("Connection established");
 
                }
}

Answer : jdbc connection programe

Do you have the MySQL JDBC jar in your classpath?
Random Solutions  
 
programming4us programming4us