java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
843853Jul 20 2001 — edited Jul 23 2001Hi, I get the error in the subject when I use it with the following code in an applet.
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
connection = DriverManager.getConnection(url, username, password); }
catch (Exception e) {
e.printStackTrace();
name.setText(e.toString());
connection = null;
}
where url, username, and password are correct and "name" is a textfield which I use in this portion for debugging purposes. Is the problem because of the applet structure, that is, applet cannot access a database on the system, or because of the non-existence of a class? I think the necessary classes is present with the JDK1.3.1 which ? am using. So what is the problem, could someone please help me?