Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

no ocijdbc10 in java.library.path

 
Bob Green
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • 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.
 
Vinod K Singh
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • 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
  • 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"
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • 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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic