Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2 Connection Problem" Watch "DB2 Connection Problem" New topic
Author

DB2 Connection Problem

Sri Prof
Greenhorn

Joined: May 04, 2004
Posts: 4
Hi,
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
y.path
at COM.ibm.db2.jdbc.app.DB2Driver.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
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
 
 
subject: DB2 Connection Problem