This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes UnsatisfiedLinkError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "UnsatisfiedLinkError" Watch "UnsatisfiedLinkError" New topic


Shaik Riyaz

Joined: Apr 17, 2008
Posts: 7
Hello All,
While connecting to the database using java in unix environment i have encountered java.lang.UnsatisfiedLinkError: Can't find library ocijdbc9 (libocijdbc9.a or .so) in sun.boot.library.path or java.library.path. Please advice how to resovle this issue.

Please observe the below error trace

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find library ocijdbc9 (libocijdbc9.a or .so) in sun.boot.library.path or java.library.path
at java.lang.ClassLoader.loadLibrary(
at java.lang.Runtime.loadLibrary0(
at java.lang.System.loadLibrary(
at oracle.jdbc.oci8.OCIDBAccess.logon(
at oracle.jdbc.driver.OracleConnection.<init>(
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(
at oracle.jdbc.driver.OracleDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at dbmgr.ConnectionPool.newConnection(
at dbmgr.ConnectionPool.initPool(
at dbmgr.ConnectionPool.<init>(
at dbmgr.PoolManager.createPools(
at dbmgr.PoolManager.init(
at dbmgr.PoolManager.<init>(
at dbmgr.PoolManager.getInstance(
at cne.CneMsgHandler.getDatabaseInfo(
at cne.CneMsgHandler.<init>(
at cne.CneMsgHandler.main(

Thanks in anticipation.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

This happens on linux when you try to use the Type 2 or 3 Driver (I forget which ) but do not have the orale client installed on the machine.

Personally: use the Type 4 (thin) driver and move on.
I agree. Here's the link:
subject: UnsatisfiedLinkError
jQuery in Action, 3rd edition