Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

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!

JDBC problem with IBM DB2

843840Nov 1 2002 — edited Jan 3 2003
Hi, I am creating a program that connects to an IBM DB2 database. I am using JDBC. Now I am using the same code that I used at my university, where the software is also installed, and it worked. I have set up DB2 at home, and I am using Tomcat 4, and j2sdk1.4.1. My servlets all work fine, I am pretty sure I have everything in the right place. My program compiles but I get this error when I try to run it at home:

java.lang.ClassNotFoundException: COM.ibm.db2.jdbc.app.DB2Driver

In my code I have put this line:
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");

The code works fine at university so I am assuming there is something missing from my home setup. I have included
import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

I would very much appreciate it if anyone could spot what I need to do, since I have to get it working asap. Thank you.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2003
Added on Nov 1 2002
6 comments
159 views