JDBC problem with IBM DB2
843840Nov 1 2002 — edited Jan 3 2003Hi, 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.