permaculture playing cards
The moose likes JDBC and Relational Databases and the fly likes no ocijdbc10 in java.library.path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "no ocijdbc10 in java.library.path" Watch "no ocijdbc10 in java.library.path" New topic

no ocijdbc10 in java.library.path

Bob Green
Ranch Hand

Joined: Feb 29, 2004
Posts: 93
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.

Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
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.

My Blog
Bob Green
Ranch Hand

Joined: Feb 29, 2004
Posts: 93
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

Joined: May 14, 2008
Posts: 5852

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).

JBoss In Action
I agree. Here's the link:
subject: no ocijdbc10 in java.library.path
It's not a secret anymore!