Runtime java.lang.UnsatisfiedLinkError [message #91513] |
Tue, 15 October 2002 22:12 |
Manoj
Messages: 101 Registered: August 2000
|
Senior Member |
|
|
Hi,
When I write the following in my java code
my code compiles but throws an exception at run time.
DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());
Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection("jdbc:oracle:oci8:@demotest","manoj","manoj");
Exception at runtime thrown is as follows
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 in
java.library.path(OracleDriver.java)
Kindly help me out
Regards
Manoj
|
|
|
|
|
Re: Runtime java.lang.UnsatisfiedLinkError [message #92321 is a reply to message #91527] |
Thu, 03 June 2004 13:50 |
Thiru Doddi
Messages: 1 Registered: June 2004
|
Junior Member |
|
|
While establishing the database connection, oracle jdbc driver uses oci native libraries to make a connection to the database. If it doesn't get a proper set of driver classes, this error is thrown at run time. Please put the classes12.jar file that comes along with Oracle installation in your classpath. This will solve this problem.
|
|
|