Re: Newbie - problem accessing DB2 with Java program.



RedGrittyBrick wrote:
zalek wrote:
In my installation we have DB2 on a mainframe computer. I am able to
access DB2 from my PC (WinXP) using some utilities. I wrote a Java
program to access DB2, but I am getting errors.
After command:
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");

I am getting exception:
Exception java.lang.ClassNotFoundException:
COM.ibm.db2.jdbc.app.DB2Driver

Case matters, I've not used DB2 but are you certain the COM is capitalised?

I'd expect
com.ibm.db2.jdbc.app.DB2Driver
instead of
COM.ibm.db2.jdbc.app.DB2Driver

http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.dc.doc/dc/r_jdbcdrivers.htm

Arne
.



Relevant Pages