If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2 connection issue with java1.6

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-16-09, 14:34
frankliuhome frankliuhome is offline
Registered User
 
Join Date: Jun 2009
Posts: 2
db2 connection issue with java1.6

I have a java client that runs on Unix, and makes connection to db2. The program works fine in java1.5, but it failed to get a connection in java1.6.

Here is the error message.

java.sql.SQLException: java.lang.UnsatisfiedLinkError: db2jdbc (A file or directory in the path name does not exist.)
at COM.ibm.db2.jdbc.app.DB2Driver.<init>(Unknown Source)

Thank you
Frank
Reply With Quote
  #2 (permalink)  
Old 06-18-09, 14:52
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
check classpath to point to driver file
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #3 (permalink)  
Old 06-18-09, 17:23
frankliuhome frankliuhome is offline
Registered User
 
Join Date: Jun 2009
Posts: 2
db2 universal driver

The cause of the issue is the db2 native client libraries are not available to the JVM.

The solution is to use db2 universal driver which does not need native client libraries.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On