Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JDK1.2 + OracleJDBC8.0.4.2.0 = java.lang.UnsatisfiedLinkError!

12 views
Skip to first unread message

Anupam Bakshi

unread,
Dec 16, 1998, 3:00:00 AM12/16/98
to
My application works with JDK1.1.7 but gives the following error message
at startup. Has anyone else seen this?
Running on Win95, Oracle JDBC Drivers release 8.0.4.2.0 (Production)
Thanks for any pointers.
Anupam.

Exception in thread "main" java.lang.UnsatisfiedLinkError:
C:\orawin95\BIN\oci80
4jdbc.dll: One of the library files needed to run this application
cannot be found
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Compiled Code)
        at java.lang.ClassLoader.loadLibrary(Compiled Code)
        at java.lang.Runtime.loadLibrary0(Runtime.java:470)
        at java.lang.System.loadLibrary(System.java:745)
        at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:138)
        at
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:93)
        at
oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:147)
        at java.sql.DriverManager.getConnection(Compiled Code)
        at java.sql.DriverManager.getConnection(DriverManager.java:137)
        at DatabaseIf.establishConnection(DatabaseIf.java:104)
        at DatabaseIf.<init>(DatabaseIf.java:36)
        at CCG.<init>(CCG.java:38)
        at CCG.main(CCG.java:61)
 

P.S. CLASSPATH  includes the classes111.zip file from Oracle & PATH has
both the bins for JDK and Oracle
 


Pavel Tavoda

unread,
Dec 16, 1998, 3:00:00 AM12/16/98
to Anupam Bakshi
Hello,

Anupam Bakshi wrote:

> My application works with JDK1.1.7 but gives the following error message
> at startup. Has anyone else seen this?
> Running on Win95, Oracle JDBC Drivers release 8.0.4.2.0 (Production)
> Thanks for any pointers.
> Anupam.
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> C:\orawin95\BIN\oci80
> 4jdbc.dll: One of the library files needed to run this application
> cannot be found

I'm not sure but this look like wrong PATH variable. Try find4jdbc.dll and
add path to this library to PATH variable. This dll
can be in different directory than bin.

Hope this help

-----------------------------------------
Pavel Tavoda <mailto:Pav...@axioma.co.at>
CORBA, ODBMS, RDBMS and Java technologies

Morten Seifert

unread,
Dec 17, 1998, 3:00:00 AM12/17/98
to
Hi

I have the same problem ( on Solaris 2.6).

My application works just fine with jdk1.1.7, but when I try to run it with
jdk1.2 I get the error belog.

The classes111.zip is located in my LD_LIBRARY_PATH and when I run a truss
on the java program I can see, that the liboci805jdbc.so file i opened.

But I cannot figure out, why it wont work.


> java.lang.UnsatisfiedLinkError: no oci805jdbc in java.library.path
> at java.lang.Throwable.fillInStackTrace(Compiled Code)
> at java.lang.Throwable.<init>(Compiled Code)
> at java.lang.Error.<init>(Error.java:50)
> at java.lang.LinkageError.<init>(LinkageError.java:43)
> at
java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:42)
> at java.lang.ClassLoader.loadLibrary(Compiled Code)
> at java.lang.Runtime.loadLibrary0(Runtime.java:444)
> at java.lang.System.loadLibrary(System.java:694)
> at oracle.jdbc.oci7.OCIDBAccess.logon(OCIDBAccess.java:142)
> at
oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:103)
> at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:148)
> at java.sql.DriverManager.getConnection(Compiled Code)
> at java.sql.DriverManager.getConnection(DriverManager.java:100)
> at dk.belle.servlet.JdbcConnection.<init>(JdbcConnection.java:79)
> at dk.belle.servlet.JdbcConnectionPool.<init>(Compiled Code)
> at
dk.belle.servlet.BelleServlet.connectDatabase(BelleServlet.java:124)
> at UnderUret.init(UnderUret.java:167)
> at
com.mortbay.HTTP.Handler.ServletHolder.service(ServletHolder.java:255)
> at
com.mortbay.HTTP.Handler.ServletHandler.handle(ServletHandler.java:82)
> at com.mortbay.HTTP.HttpServer.handle(Compiled Code)
> at com.mortbay.HTTP.HttpListener.handleConnection(Compiled Code)
> at com.mortbay.Util.ConnectionThread.run(Compiled Code)

Med venlig hilsen

Morten Seifert
Belle Systems A/S

-----
Anupam Bakshi <anu...@worldnet.att.net> wrote in message
news:36772E8D...@worldnet.att.net...


>My application works with JDK1.1.7 but gives the following error message
>at startup. Has anyone else seen this?
>Running on Win95, Oracle JDBC Drivers release 8.0.4.2.0 (Production)
>Thanks for any pointers.
>Anupam.
>
>Exception in thread "main" java.lang.UnsatisfiedLinkError:
>C:\orawin95\BIN\oci80
>4jdbc.dll: One of the library files needed to run this application
>cannot be found

Anupam Bakshi

unread,
Dec 19, 1998, 3:00:00 AM12/19/98
to Pavel Tavoda
Still doesn't work!
The only *jdbc*.dll files that are part of the install (JDK/ORACLE) are:

c:\orawin95\bin\oci804jdbc.dll
c:\orawin95\jre11\bin\jdbcodbc.dll
c:\jdk1.2\jre\bin\JdbcOdbc.dll

Could someone who is using JDK1.2 and Oracle 8.0.x please do a "find" and tell
me if there are any other "*jdbc*.dll"s that are missing from the list above?

Thanks a lot.
Anupam.
 

Pavel Tavoda wrote:

> Hello,


>
> Anupam Bakshi wrote:
>
> > My application works with JDK1.1.7 but gives the following error message
> > at startup. Has anyone else seen this?
> > Running on Win95, Oracle JDBC Drivers release 8.0.4.2.0 (Production)
> > Thanks for any pointers.
> > Anupam.
> >
> > Exception in thread "main" java.lang.UnsatisfiedLinkError:
> > C:\orawin95\BIN\oci80
> > 4jdbc.dll: One of the library files needed to run this application
> > cannot be found
>

Todd Smith

unread,
Dec 19, 1998, 3:00:00 AM12/19/98
to
If you are using oci8 try the thin(type 4) driver instead. In Jdk1.2
the dynamic link library schema was changed, see Tool Changes in the 1.2
documentation. Oci8 might not be Jdk1.2 compliant. Also, the use of
the classpath has be enhanced with the concept of extensions, check out
the documentation.

...Todd


Mark H. James

unread,
Dec 29, 1998, 3:00:00 AM12/29/98
to
I am having the same problem -- it appears that the Oracle OCI drivers seem
to require "javai.dll" from the Java 1.1.x runtime. Since there is no such
thing in Java 1.2, the Oracle driver cannot be loaded.

(It is not a path problem -- if you actually include "javai.dll" then the
error becomes an access violation).

Unfortunately the thin drivers do not support all the functions we need, but
if they do I would second that suggestion.

Anupam Bakshi wrote in message <367C2E50...@worldnet.att.net>...

0 new messages