You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Abhishek Pamecha <ab...@infy.com> on 2002/03/04 09:05:47 UTC

java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"

Thanks buddy!
but ..i already did that
but i have a a requirement which says i have to use oci client only....
any other solution ???

-----Original Message-----
From: fox_peng [mailto:u8404051@chu.url.com.tw]
Sent: Monday, March 04, 2002 1:16 PM
To: Abhishek Pamecha
Subject: UnsatisfiedLinkError...no ocijdbc8 in java.library.path


hi
I HAVE the same problem 
my error message is
" java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"
 
but when i change my jdbc url
from(old, have ocijdbc8 problem)
         jdbc:oracle:oci8:@xxxxxxxx
to(new, and my applet will work well)
         jdbc:oracle:thin:@" + host + ":1521:" + sid
 
i hope this will work on your problem too
 
i don't know how to re in broad,if this can work , you can publish this solution in web
GOOD LUCK

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"

Posted by Toru Watanabe <t-...@du.jp.nec.com>.
Hi Abhishek,

try following jsp. this jsp displays java.library.path.
It suppose there is no "libocijdbc8.so" in above pathes.

you should find "libocijdbc8.so" and add to LD_LIBRARY_PATH.

-----snip----
<%
String libpath = (String)(System.getProperty("java.library.path"));
%>
<html>

<head>
<title>
library path test
</title>
</head>
<body>
<p>The library path is <%=libpath%></p>
</body>
</html>

------snip------

regards,
Watanabe


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path"

Posted by Toru Watanabe <t-...@du.jp.nec.com>.
First, please make sure that Oracle client is installed
in your machine.

Abhishek> Thanks buddy!
Abhishek> but ..i already did that
Abhishek> but i have a a requirement which says i have to use oci client only....
Abhishek> any other solution ???

UnsatisfiedLinkError means JVM can't find shared library.
You need to add shared library path to environment variable.

If you use solaris or linux, then you should add following 
statement in your tomcat.sh.

LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH

if you use HP-UX, then

SHLIB_PATH=$ORACLE_HOME/lib:$SHLIB_PATH
export SHLIB_PATH

if you use Windows, then you should add following to tomcat.bat.

set PATH=%ORACLE_HOME%\lib;%PATH%


then it will be able to find shared library. 

regards,
Watanabe.

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>