aspose file tools*
The moose likes JDBC and the fly likes no db2jdbc in java.library.path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "no db2jdbc in java.library.path" Watch "no db2jdbc in java.library.path" New topic
Author

no db2jdbc in java.library.path

Daniele Anzelmi
Greenhorn

Joined: Jul 18, 2011
Posts: 2
Hello,

i've run into this error msg: "java.sql.SQLException: java.lang.UnsatisfiedLinkError: no db2jdbc in java.library.path"

the complete error stack is the following:



i'm on ubuntu 64bit, i'm developing in eclipse (Enterprise Edition version 1.4.0.20110615-0550) and the java version installed on my machine is:



Tomcat version: Apache Tomcat/7.0.12
DB2 Express-C database server V9.7

I've added the jar "db2java.jar" to the WEB-INF/lib directory. I think i have done it right and put everything in the right place but still i'm not able to connect to my database. This is the java code which try to establish a connection:


Any suggestion is welcome. Thank you very much!
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

Please refer, http://www.coderanch.com/t/544587/JDBC/java/no-sqljdbc-auth-java-library


S.D. MADHAN
Not many get the right opportunity !
Daniele Anzelmi
Greenhorn

Joined: Jul 18, 2011
Posts: 2
Sorry but i dont understand how that can help me
Madhan Sundararajan Devaki
Ranch Hand

Joined: Mar 18, 2011
Posts: 312

The post referred by me attempts to solve the UnsatisfiedLinkError issue, which I believe is your problem !
 
 
subject: no db2jdbc in java.library.path