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

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).
 
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic