File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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
Bookmark "no ocijdbc10 in java.library.path" Watch "no ocijdbc10 in java.library.path" New topic
Author

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.

Thanks.
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
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

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
 
Don't get me started about those stupid light bulbs.
 
subject: no ocijdbc10 in java.library.path
 
Similar Threads
path problem
java.lang.Unsatisfiedlinkerror
ocijdbc10 driver
WAS6.1.0.21 Oracle OCI Driver for connecting database
System.getProperty