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 Asking for ocijdbc8 in Path I have ocijdbc9 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Asking for ocijdbc8 in Path I have ocijdbc9" Watch "Asking for ocijdbc8 in Path I have ocijdbc9" New topic
Author

Asking for ocijdbc8 in Path I have ocijdbc9

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 582
When trying to connect to my Oracle Database I get the following error.
java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344)
at java.lang.Runtime.loadLibrary0(Runtime.java:744)
at java.lang.System.loadLibrary(System.java:815)
at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:246)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:172)
at roleOne.server.<init>(server.java:36)
at roleOne.server.main(server.java:195)
Problem is that I have ocijdbc9 which I have set in my path.
C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin;
C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin\x11;
C:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\mksnt;
C:\jdk1.3.1_04\jre\bin;.;C:\WINDOWS\System32;C:\WINDOWS;.;
C:\jdk1.3.1_04\bin;C:\j2sdkee1.3.1\bin;C:\jakarta-ant-1.3\bin;
C:\bea\wlserver6.1\bin\oci816_8;C:\oracle\ora90\bin;
C:\oracle\ora90\Apache\Perl\5.00503\bin\mswin32-x86;
C:\Program Files\Oracle\jre\1.1.8\bin;
C:\oracle\ora90\jdbc\lib\classes111.zip;
C:\oracle\ora90\BIN\ocijdbc9;C:\WINDOWS\system32;
C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\WINDOWS\COMMAND;
C:\Program Files\Rational\common;C:\Program Files\Rational\ClearQuest;
C:\Program Files\Rational\Rose\TopLink\;C:\Program Files\Rational\Rational Test
Thanks for any help.
TE
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Asking for ocijdbc8 in Path I have ocijdbc9