Re: Newbie - problem accessing DB2 with Java program.
- From: Arne Vajhøj <arne@xxxxxxxxxx>
- Date: Mon, 17 Mar 2008 20:36:17 -0400
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
.
- Prev by Date: Re: Newbie - problem accessing DB2 with Java program.
- Next by Date: Re: free database for java
- Previous by thread: Re: Newbie - problem accessing DB2 with Java program.
- Next by thread: A free tool like Erwin
- Index(es):
Relevant Pages
|
|