UnsatisfiedLinkError: no ocijdbc8 in java.library.path

In case any of you have gotten this error (I've seen a lot of posts in reference to it) and are using Windows Apache Jserv..... make sure to update your jserv.properties's wrapper.path property with the path to your OCIJDBC8.DLL.
Here is the error log from my mod_jserv.log file:
[26/07/2000 00:08:12:433] (ERROR) ajp12: Servlet Error: java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path: no ocijdbc8 in java.library.path
so if you've got similar problems and already have ocijdbc8.dll in your WINDOWS path.. remember that JSERV requires it in ITS OWN PATH property.
Just trying to be helpfull :^)
Moran Ben-David
[email protected]

are you able to run jdbc programs from javac?

Similar Messages

  • Java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path

    hi,
    i am trying to connect to an oracle 8.1.7 database from my application running on tomcat 4.0.3 / jdk1.4 /windows nt.
    using the thin jdbc-driver (classes12.zip) everything works fine.
    when i try using the oci8-driver, i get an error-message saying:
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    i have the oracle-client installed on my machine.
    the ocijdbc8.dll can be found in D:\server\oracla81\bin
    the environment-variables PATH, CLASSPATH, LD_LIBRARY_PATH (i'm not sure if this has any meaning on nt) all point to this directory.
    i start tomcat using the following option: -Djava.library.path="D:\server\oracla81\bin"
    my application can see this variable:
    System.out.println("java.library.path: "+System.getProperty("java.library.path"));
    prints out the correct value.
    then i try to load the library by myself:
    try {
    System.loadLibrary("ocijdbc8");
    System.out.println("Successfully Loaded");
    } catch(Exception e) {
    System.out.println("LD_LIBRARY_PATH is not properly set");
    e.printStackTrace();
    everything works fine! the library is loaded!
    finally i try to connect to the database and the application throws the mentioned exception:
    lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
         at java.lang.Runtime.loadLibrary0(Runtime.java:772)
         at java.lang.System.loadLibrary(System.java:832)
         at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:228)
         at oracle.jdbc.driver.OracleConnection.(OracleConnection.java:249)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    any help would be appreciated.
    thanx in advance,
    frank.
    [email protected]

    It is probably JDK 1.4 that causes the problem. I was able to get strange errors with that version of the JDK with code that worked fine using 1.31.

  • No ocijdbc8 in java.library.path (with Netscape under Tomcat)

    Hello,
    my problem is the following: I must use the OCI-Driver of the Oracle-Client 8.1.7 because I use special PL/SQL-functions.
    I get the error message:
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    when I try to start my servlet within netscape. Before this I'm starting the tomcat servlet engine and make the following path known to tomcat:
    java.library.path=/usr/lib:/lib:/share/ams/oracle/ora817-SunOS-5.7/lib:/share/ams/oracle/ora817-SunOS-5.7/jdbc/lib:/share/ams/oracle/ora817-SunOS-5.7/lib64
    In this line are the necessary paths to find the libocijdbc8.so library.
    Why does the servlet still have problems to find the driver? In addition, I set my java.library.path within the servlet itself.
    Do you know where is the crux of the matter?
    Thank you,
    Christian Schmidbauer

    Hello:
    libocijdbc9.so exists in the LD_LIBRARY_PATH. Tried
    linking/copying classes12.zip from $TOMCAT_HOME/common/lib to $TOMCAT_HOME/webapps/APP_NAME/WEB-INF/lib causes the error:
    java.lang.UnsatisfiedLinkError: /usr/apps/oracle/product/9.2.0/lib/libocijdbc9.so: ld.so.1: /usr/j2se/bin/java: fatal: /usr/apps/oracle/product/9.2.0/lib/libocijdbc9.so: wrong ELF class: ELFCLASS64
    when the CATALINA_OPTS has -d32 and
    -Djava.library.path=$ORACLE_HOME/lib(tried giving them as JAVA_OPTS in catalina.sh as well)
    Thanks!

  • No ocijdbc8 in java.library.path (with Servlet under Tomcat)

    Hello,
    my problem is the following: I must use the OCI-Driver of the
    Oracle-Client 8.1.7 because I use special PL/SQL-functions.
    I get the error message:
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    when I try to start my servlet within netscape. Before this I'm
    starting the tomcat servlet engine and make the following
    path known to tomcat:
    java.library.path=/usr/lib:/lib:/share/ams/oracle/ora817-SunOS-5.7/lib:/share/ams/oracle/ora817-SunOS-5.7/jdbc/lib:/share/ams/oracle/ora817-SunOS-5.7/lib64
    In this line are the necessary paths to find the libocijdbc8.so
    library.
    Why does the servlet still have problems to find the driver?
    In addition, I set my java.library.path within the servlet itself.
    Do you know where is the crux of the matter?
    Thank you,
    Christian Schmidbauer

    I'm not sure if this will help, but check to make sure your LD_LIBRARY_PATH environment variable is set (before starting Tomcat). I think this tells the Oracle classes where to find the .so files.

  • No ocijdbc8 in java.library.path

    Hello,
    I have my database on Oracle 8i on one machine.
    My java codes using JDBC is on other machine.
    I wanted to fetch datas from Oracle 8i.
    I tried a simple code and it gaved me the
    following exception...
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1370)
    at java.lang.Runtime.loadLibrary0(Runtime.java:773)
    at java.lang.System.loadLibrary(System.java:835)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at java.sql.DriverManager.getConnection(DriverManager.java:515)
    at java.sql.DriverManager.getConnection(DriverManager.java:174)
    at Employee.main(Employee.java:32)
    Please give some solution.
    Thanking You.
    Mehul

    I'm trying to do this too under Tomcat (in fact I just posted my own thread)
    The problem is apparently a matter of getting the right library path. Normally I'd expect to add the necessary library (which is probably $ORACLE_HOME/lib) in a LD_LIBRARY_PATH environment variable.
    Tomcat doesn't appear to respect this variable, but you can change java.library.path with
    -Djava.library.path= .. path ..
    on the java command.
    I haven't got it right yet, however. Setting -Djava.library.path=$ORACLE_HOME/lib got me arround the first error, but I then got another library module not found.
    The thin driver works fine, but I do want to move to the more efficient oci8.

  • Java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path

    Hello
    i am getting this unsatisfied error whenever i use servlet & in my servlet i am using JDBC for connecting to Oracle.
    i need to know the solution for this please do let me know . Also do i need to know the JDBC re-alm set-up in Tomcat server.
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in shared library path
    at java.lang.Runtime.loadLibrary(Runtime.java)
    at java.lang.System.loadLibrary(System.java)
    at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java)
    at oracle.jdbc.driver.OracleConnection.(OracleConnection.java)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java)
    at java.sql.DriverManager.getConnection(DriverManager.java:83)
    at java.sql.DriverManager.getConnection(DriverManager.java:126)
    at sdsi.sdsi.doGet(sdsi.java:29)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
    at org.apache.tomcat.core.Handler.service(Handler.java:287)
    at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
    at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
    at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
    at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
    at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
    at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
    at java.lang.Thread.run(Thread.java)

    Make sure the oracle library ($ORACLE_HOME/lib) is included in the LD_LIBRARY_PATH.
    Or, you can use JDBC thin driver instead of OCI driver.

  • Oracle Calendar - UnsatisfiedLinkError: no csdkjni in java.library.path

    Hi, all.
    I deployed my test calendar application developed using Jdeveloper 10.1.3.0 (on Windows XP) to the Oracle 10.1.3. AS on a linux server, but the CalendarServer in on another installation (Collaboration Suite 10.1.2) on the same linux server.
    When I try to executed the code that calls the calendar server I get this error:
    500 Internal Server Error
    javax.faces.el.EvaluationException: java.lang.UnsatisfiedLinkError: no csdkjni in java.library.path
    I set the LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:$ORACLE_HOME/ocal/lib on the collaboration suite 10.1.2 installation.
    When I try to run the code on my Jdeveloper I get the same error:
    java.lang.UnsatisfiedLinkError: no csdkjni in java.library.path
    In my windows machine I create a folder where I put the dll's and jar files that came from the collaboration suite windows installation, but I get always the same error
    This is the code:
    try
    Api.init("calendar.ini", "calendar.log");
    catch(Api.StatusException e)
    System.out.println("init returned status'" + e.getMessage() + "'");
    System.exit (1);
    Is my approach correct? Because if i'm developing on Windows and I need dll's files to connect to the calendar server on linux, but when I deploy the application to the linux server those dll's are useless and cannot be used. So am I missing something here? Do I need anything else to get this to work?
    Best Regards,
    Rui

    1. Use 1 and only 1 of classes12.zip and ojbc14.jar; they have different versions of the same classes in them.
    2. The Oracle OCI driver for JDBC uses .dll files or .so files from the Oracle client installation (as well as Oracle network configuration files, I think); most people use the thin driver instead to avoid this problem.
    To use the thin driver, change your url, see here for details:
    http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm#05_00
    To stay with the OCI driver (not recommended), you need to have the appropriate Oracle client installation (or at least get the dlls or sos), and I think set additional environment variables, such as ORACLE_HOME and possibly LD_LIBRARY_PATH. I don't do this myself, so I can't give much more advice.

  • Java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path

    Hi,
    I'm using Java 1.5 with Oracle 10g on a Mac 10.5.6 and trying to use the OCI cilent. Sadly, I'm getting the following error
    Caused by: java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1753)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:993)
    at oracle.jdbc.driver.T2CConnection$1.run(T2CConnection.java:3147)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.T2CConnection.loadNativeLibrary(T2CConnection.java:3143)
    at oracle.jdbc.driver.T2CConnection.logon(T2CConnection.java:221)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:441)
    at oracle.jdbc.driver.T2CConnection.<init>(T2CConnection.java:132) at oracle.jdbc.driver.T2CDriverExtension.getConnection(T2CDriverExtension.java:78)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at com.caucho.sql.DriverConfig.createDriverConnection(DriverConfig.java:567)
    at com.caucho.sql.ManagedConnectionImpl.initDriverConnection(ManagedConnectionImpl.java:242) at com.caucho.sql.ManagedConnectionImpl.<init>(ManagedConnectionImpl.java:131)
    at com.caucho.sql.ManagedFactoryImpl.createManagedConnection(ManagedFactoryImpl.java:121) at com.caucho.jca.ConnectionPool.create(ConnectionPool.java:792)
    at com.caucho.jca.ConnectionPool.allocatePool(ConnectionPool.java:661) at com.caucho.jca.ConnectionPool.allocate(ConnectionPool.java:620)
    ... 23 more
    My database connection string is
    jdbc:oracle:oci:@test-database:1521:orcl11
    I am using a Resin 3.0.19 app server, and the java.library.path I set it to is /opt/oracle:/opt/oracle/lib. Here are the contents of those directories
    /opt/oracle:
    bin     lib     network     ord     sqlj
    /opt/oracle/lib
    README_IC.htm          libheteroxa10.dylib     libocijdbc10.dylib     orai18n.jar
    classes12.jar          libnnz10.dylib          libsqlplus.dylib     sqlplus
    glogin.sql          libocci.dylib.10.1     ocrs12.jar
    libclntsh.dylib.10.1     libociei.dylib          ojdbc14.jar
    Any ideas for further troubleshooting? Thanks, - Dave

    The oci library must be in the shared library path of the platform. Simple as that.
    Do you have that library(ocijdbc10) installed? On platforms besides MAC a client install of the Oracle GUI allows for it.

  • UnsatisfiedLinkError: no awt in java.library.path

    Hi all,
    UnsatisfiedLinkError: no awt in java.library.path
    I get the above error when I try to start either the WebLogic server
    or the Console from the command line. I'm using JDK1.2 on Solaris 2.6
    with the WebLogic Server 4.5.1 evaluation program. The error leads me to
    believe that the JDK_HOME property is not correctly set. ALL info on the
    site pertaining to the JDK_HOME property applies to Windows, and I have
    not seen anything about this property in a Solaris environment.
    Currently my JDK_HOME property points to the directory where all of the
    binaries are located, rather than where the rte.jar file is located.
    Can anyone who has successfully run the evaluation on Solaris with
    JDK 1.2 give some pointers as to how your environment settings are set?
    Thanks!
    BP

    Hi Brian,
    Your JDK_HOME should point to your java directory, NOT to the bin directory.
    Your PATH however should have the bin directory appended to it if you want
    to be able to run java without having to explicitly specify its full path.
    Brian Ploetz <[email protected]> wrote in message
    news:[email protected]..
    Hi all,
    UnsatisfiedLinkError: no awt in java.library.path
    I get the above error when I try to start either the WebLogic server
    or the Console from the command line. I'm using JDK1.2 on Solaris 2.6
    with the WebLogic Server 4.5.1 evaluation program. The error leads me to
    believe that the JDK_HOME property is not correctly set. ALL info on the
    site pertaining to the JDK_HOME property applies to Windows, and I have
    not seen anything about this property in a Solaris environment.
    Currently my JDK_HOME property points to the directory where all of the
    binaries are located, rather than where the rte.jar file is located.
    Can anyone who has successfully run the evaluation on Solaris with
    JDK 1.2 give some pointers as to how your environment settings are set?
    Thanks!
    BP

  • NO OCIJDBC8 in java.library.path (JDEV3.0)

    HI,
    I am using Jdev3.0.
    I am trying to use the OCI-8 in the Connection Manager. In the manager, I selected Oracle JDBC OCI-8 from the Driver dropping the box. When I clicked the Test Button, I got the "no ocijdbc8 in java.library.path" message. Where should I do next? Help Please.
    (I have set up the Classpath=c:\ora815\jdbc\lib\classes11.zip... in the NT4.0)
    Many Thanks.
    Alan
    null

    JDBC OCI drivers require the following to work properly in JDEV :
    1) A matching Oracle client install
    By this i mean, using jdbc 817 drivers with an rdbms 817 client install for that o/s platform(currently JDEV runs on and is supported on win nt 4 sp 6a and win 2000)
    2) A compatible JDK Version
    a) JDK 1.2.x is recommended and supported
    b) JDK 1.3.x can be used but is not officially certified or supported.
    Note on JDK 1.3.x usage :
    b.1) Don't deploy ANY jdk 1.3 based code to the Oracle jvm found in IAS 8i or 9i or RDBMS 8.1.5, 8.1.6, or 8.1.7.
    Also the status for the new IAS 1022 "OC4J" component is to be determined -- you need to review the IAS 9i 1022 product doc for this issue.
    b.2) Any "issues" using jdk 1.3 must be reproduced by the customer in jdk 1.2 before a bug can be filed.
    3) Jdeveloper must be setup properly per the instructions in the online help within Jdeveloper.
    In Jdev 3.2.3 the topic is called
    "Connection Requirements for OCI and Type 2 JDBC Drivers"
    You can find this topic(or a similar topic) in your Jdev version by entering the JDEV "on line help" documentation via HELP--> HELP TOPICS --> "SEARCH" Tab and use "jdbc oci" (no quote marks) as the search argument.
    I hope this helps ...
    don

  • Re: UnsatisfiedLInkError: No muxer in java.library.path

    In the default weblogic.properties file, this should be the first property
    listed under the System Properties section:
    # SYSTEM PROPERTIES
    # System properties in this section are set to system defaults
    # Performance pack. The shared library must be accessible from your
    # PATH (NT) or from your shared library path (UNIX; the name of the
    # variable varies: LD_LIBRARY_PATH, SHLIB_PATH, etc.)
    weblogic.system.nativeIO.enable=true
    Hope this helps,
    Robert
    Raffi Basmajian wrote:
    I dont see "weblogic.system.nativeIO.enable" in the properties file - should
    this attribute be added to the core section?
    Joe Nykilchyk wrote:
    Try setting weblogic.system.nativeIO.enable=false in weblogic.properties.
    Joe
    Raffi Basmajian wrote:
    I get the following error when I try to start weblogic
    java.lang.UnsatisfiedLinkError: no muxer in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1249)
    at java.lang.Runtime.loadLibrary0(Runtime.java:470)
    at java.lang.System.loadLibrary(System.java:768)
    at
    weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:94)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:241)
    at weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:178)
    at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:140)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:257)
    Any ideas

    CR087944 will fix the problem, or set the following environment varible in the setenv.bat.
    set __COMPAT_LAYER=Win2000

  • UnsatisfiedLInkError: No muxer in java.library.path

    I get the following error when I try to start weblogic
    java.lang.UnsatisfiedLinkError: no muxer in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1249)
    at java.lang.Runtime.loadLibrary0(Runtime.java:470)
    at java.lang.System.loadLibrary(System.java:768)
    at
    weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:94)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:241)
    at weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:178)
    at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:140)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:257)
    Any ideas

    I dont see "weblogic.system.nativeIO.enable" in the properties file - should
    this attribute be added to the core section?
    Joe Nykilchyk wrote:
    Try setting weblogic.system.nativeIO.enable=false in weblogic.properties.
    Joe
    Raffi Basmajian wrote:
    I get the following error when I try to start weblogic
    java.lang.UnsatisfiedLinkError: no muxer in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1249)
    at java.lang.Runtime.loadLibrary0(Runtime.java:470)
    at java.lang.System.loadLibrary(System.java:768)
    at
    weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:94)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:241)
    at weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:178)
    at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:140)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:257)
    Any ideas

  • Java.lang.UnsatisfiedLinkError: no muxer in java.library.path

    error while starting weblogic
    plz help me

    According to CR087944 for weblogic 6.1
    "Running under Windows XP resulted in a java.lang.UnsatisfiedLinkError: no muxer in java.library.path error.
    This is because WebLogic Server does not correctly report Windows XP as the host operating system. With JDK 1.3.1_03, os.name is returned "Windows 2000".
    Modification of a method in the SocketMuxer resolved the problem.."
    U need to get the service pack 5 or above in order to resolve this problem

  • I got this message "no ocijdbc8 in java.library.path", what should i do???

    i use personal oracle 8.0.5, jdeveloper 3, win98. When i make connection with JDBC Driver (Oracle JDBC OCI-8), local DB with network Protocol (BEQ), when i click Test Connection button i got this message "no ocijdbc8 in java.library.path", what should i do with this ???
    please tell me because i'm new with this.
    thank's

    In jdbc library, you have this file. Try to put it in JDeveloper bin folder, or in system\bin folder.

  • Another "no ocijdbc8 in java.library.path"

    Hello Guys,
    Well, I got the problem described in my subject.
    I found in forum history many answers about this. I have tried some actions to correct that problem, but they didn't work out. (I renamed the file classes12.zip to classes12.jar... to classes.jar... I have put in the PATH variable the right path to the ocijdbc8.dll file.... anyway..)
    I'm using Win2k, Tomcat 4.1.12 and Oracle 8.1.7 running in Pentium III with 256MB and 30GB (HD). I have already installed the Oracle Client in my machine. I don't know more what to do...
    ====================================================
    The error:
    org.apache.jasper.JasperException: no ocijdbc8 in java.library.path
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
    ====================================================
    Anybody know about this or got a similar problem?
    Best Regards
    Diogo Montanaro Pedroso
    [email protected]

    http://forum.java.sun.com/thread.jsp?thread=87301&forum=48&message=224718

Maybe you are looking for