• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

no ocijdbc10 in java.library.path

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can someone please help me with this problem:
I am trying to connect an oracle datasource using the oci driver in jasperserver and it gives me the UnsatisfiedLinkError: no ocijdbc10 in java.library.path.

Thanks.
 
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From the javadoc of UnsatisfiedLinkError-

Thrown if the Java Virtual Machine cannot find an appropriate native-language definition of a method declared native.



See if some native library is missing from the path.
 
Bob Green
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the response. I am using tomcat 5.5 and I have the ojdbc14.jar in the common/lib directory and the JAVA_OPTS = %JAVA_OPTS% -Djava.library.path="c:\tomcat-5.5\common\lib\ojdbc14.jar"
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The UnsatisfiedLinkError is not looking for a JAR file, it is looking for a native library (*.so on Linus/Unix, *.dll on Windows). Apparently the JDBC driver you are using requires a native library to run. That native library is what must be included in java.library.path. And java.library.path should be set to the directory containing the *.so or *.dll, not to the *.so or *.dll itself (same rules as for defining PATH).
reply
    Bookmark Topic Watch Topic
  • New Topic