• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no db2jdbc in java.library.path

 
Daniele Anzelmi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please refer, http://www.coderanch.com/t/544587/JDBC/java/no-sqljdbc-auth-java-library
 
Daniele Anzelmi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry but i dont understand how that can help me
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The post referred by me attempts to solve the UnsatisfiedLinkError issue, which I believe is your problem !
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic