jQuery in Action, 2nd edition*
The moose likes JDBC and the fly likes DB2 Connection Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2 Connection Problem" Watch "DB2 Connection Problem" New topic

DB2 Connection Problem

Sri Prof

Joined: May 04, 2004
Posts: 4
Iam new to DB2 and trying to connect using Java Class and I am getting the following error. Can anybody tell me what may be the reason.
Thanks in advance.
java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in java.librar
at COM.ibm.db2.jdbc.app.DB2Driver.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at com.jnl.db.DBUtil.getConnection(DBUtil.java:48)
at com.jnl.db.DBUtil.getConnection_Jnl(DBUtil.java:29)
at com.jnl.db.DBQuery.insert_Jnl(DBQuery.java:58)
at com.jnl.util.Util.insertErrorMsg(Util.java:294)
at com.jnl.tm.TMProspect.processProspects(TMProspect.java:91)
at com.jnl.tm.TMProspect.main(TMProspect.java:105)

Thanks & Regards
jQuery in Action, 2nd edition
subject: DB2 Connection Problem