Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver

843853Jul 20 2001 — edited Jul 23 2001
Hi, 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2001
Added on Jul 20 2001
8 comments
896 views