• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

no db2jdbc in java.library.path

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 312
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please refer, https://coderanch.com/t/544587/JDBC/java/no-sqljdbc-auth-java-library
 
Daniele Anzelmi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry but i dont understand how that can help me
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
MS IE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The post referred by me attempts to solve the UnsatisfiedLinkError issue, which I believe is your problem !
 
Arthur, where are your pants? Check under this tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic