"no ocijdbc11 in java.library.path" error when connecting a TNS database co

Hi
"no ocijdbc11 in java.library.path" error when connecting a TNS database connection
I have the same problem 'error code' when testing the connection to a database although I have an APEX db that connects without a problem.
I have re downloaded jre & SQL Developer just to ensure all files are where they should be with no luck.
I've also tried most of the suggestions in various threads.
Does anyone know what exactly causes this error?
eg; should I be looking for a file called 'ocijdbc11' & put it into the 'java.library.path' path?
Can anyone explain to a newbie at db connections what I should do?
I'm using the 'thin' client as the checkbox is clear & I don't know what path to enter into the correct file to make this work??
This is & needs to connect as a TNS connection & was working fine until recently, the only change I can think of is a move of files from the 'C' drive but I thought redownloading SQL Developer would slove this.
Thanks

When you reinstalled SQL Developer, did you install into a new directory (ie rename or delete the old directory first)?
I don't know if system setup contains directory references (which might be invalid after moving the location of SQL Developer). Does renaming your system2.1.1.64.45 directory (in C:\Documents and Settings\username\Application Data\SQL Developer) help? Note that your connections are in the connections.xml file in the o.jdeveloper.db.connection.11.1.1.2.36.55.30 subdirectory of system2.1.1.64.45 - you will either need to export connections before renaming and then import again after or copy this file to test if you can connect.
Finally, the TNS Names directory preference is just a way of telling SQL Developer where to look for the tnsnames.ora file, rather than just assuming it will pick the right one. If you go to create a new connection, do you get the right list of TNS aliases? If not, then set this preference to the directory where the right tnsnames.ora file lives.
theFurryOne

Similar Messages

  • Error "no ocijdbc11 in java.library.path" in SQL Developer 4

    Hi!
    I have just installed the latest version of Oracle 12c and the latest SQL Developer (4.0.0.12). I have also JDK 7u25 installed. I run everything on Windows 7 64bit. When I create a local connection in SQL Developer and test or try to connect I get the error: no ocijdbc11 in java.library.path
    If I try the exact same thing in SQL Developer 3.2.2 (the one bundled with the latest Oracle 12c) it works fine. In both versions of SQL Developer I have done no configuration and all the settings are the defaults.
    I have read all the posts that relate to this error message, but they are all based on older versions or other platforms.
    Is there a problem in the default configuration of SQL Developer 4 or a compatibility problem with Oracle 12c? Any ideas of how to fix this?
    When I compare the properties of the two versions of SQL Developer I see that most of them are identical, but the java.library.path points to the sqldeveloper/bin directory in v4 and to the sqldeveloper root folder in v3. I don't know if that is significant.
    Also the setting "Use OCI/Thick Driver"  under "Database: Advanced" is unchecked, so it seems strange that it tries to use it anyway.
    /nikos

    Nikos:
    You should search that ocijdbc11 is installed in a path similar to C:\Oracle32bit\product\11.2.0\client32bit\bin and that this path (or C:\Oracle32bit\product\11.2.0\client32bit) is in your java.library.path.
    If you click on Help|About and the Extensions tab you will see a list of some of these.
    Click on the Export button and copy the contents to a file or clipboard.  Open the file (or Ctrl/V) in an editor and search for java.library.path.  This is the list of ;-separated folders that SQL looks in. Ensure that this list includes the one where your ocijdbc11 was found.
    HTH

  • SQL Developer Not Working "no ocijdbc11 in java.library.path"

    Hi,
    I have Oracle 10g with SQL Developer 3.0 on Windows XP, they worked well untill I just installed Oracle ODBC (ODAC101040.exe). I started to receive error message "no ocijdbc11 in java.library.path" and I am no longer able to use SQL Developer.
    Any solution?

    Check on the envirnment variables on the windows. Once you installed the "Oracle ODBC" it might have replaced the Old env. variables that can found in XP "System Properties> advance tab> environment Variables". Make sure you have the right environment variables that point to right directory locations. Update us with your findings.

  • No ocijdbc11 in java.library.path

    Good day,
    I am trying to set up SQL Developer to use TAF; I am frequently getting the error in this subject and am pulling my hair out trying to get to the bottom of it.
    My environment:
    freshly downloaded Instant Client 11.2.0.3
    Full Oracle Client 11.2.0.2
    Freshly upgraded SQL Developer (3.2.20.09)
    Client: Windows 7
    Server: Grid/RAC 11.2.0.3 running on Solaris 10
    For starters, I have attempted to follow the wise advice of Gary and Turloch in the following threads:
    https://forums.oracle.com/thread/2342919
    https://forums.oracle.com/thread/2319271
    I have tried both the Thick and Thin clients. I am not exactly sure what to do next. Any ideas?
    Thanks for your time and attention,

    Hi Charles,
    You definitely need OCI to use TAF.
    If you go to the Help -> About -> Properties tab and scroll down to the name java.library.path, you should see its value is a construction that includes your Windows Path variable.  The Path variable should include a reference to the bin directory of the Oracle client software where the ocijdbc11.dll lives.  If it's missing, then that could be the problem.
    Otherwise, reading through some old forum posts, it seems that error can also occur when SQL Developer has difficulty locating the tnsnames.ora file. The recommendation is to specify the location via Tools -> Preferences -> Database -> Advanced -> Tnsnames Directory. However, this case is applicable when Connection Type = TNS, and I assume you must be using Connection Type = Advanced with a Custom JDBC URL.  If ocijdbc11.dll is on the Path, you should have the option of using either TNS or the Custom JDBC URL.
    If Path is correct, I am not sure if it is absolutely necessary to set the ORACLE_HOME variable and enable the OCI/Thick driver preference, but it probably could not hurt.
    Hope this helps,
    Gary

  • No muxer in java.library.path error

    I get this when I try to run server6.0 on win98. can someone help me understand what is wrong?
    Thanks!
    <Nov 17, 2001 4:17:16 PM CST> <Error> <Performance Pack> <Unable to load perform
    ance pack, using Java I/O.
    java.lang.UnsatisfiedLinkError: no muxer in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:90)
    at java.lang.Class.newInstance0(Native Method)

    Ramesh & Kumar,
    I got the same error when I tried to run WL Server 6.1
    on my Windows 98. Here is the complete trace. Is this
    error something that can be ignored because it sounds
    like it is something just for performance.
    <Nov 21, 2001 1:57:21 PM EST> <Error> <Performance Pack> <Unable to load perform
    ance pack, using Java I/O.
    java.lang.UnsatisfiedLinkError: no muxer in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:90)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at weblogic.socket.SocketMuxer.makeTheMuxer(SocketMuxer.java:128)
    at weblogic.socket.SocketMuxer.getMuxer(SocketMuxer.java:83)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:232)
    >
    <Nov 21, 2001 1:57:22 PM EST> <Notice> <WebLogicServer> <Started WebLogic Admin
    Server "petstoreServer" for domain "petstore" running in Production Mode>
    Looks like the petstore application is working...inspite of the
    above error message.
    Thanks,
    Balaji.
    Kumar Allamraju <[email protected]> wrote:
    It appears the following stack trace is incomplete.
    I can't believe the stack trace is originated from PosixSocketMuxer.
    posix is only for unix platform.
    In anycase before loading a performance pack we check the OS and
    based on that we will load the appropriate dll/shared library.
    AFAIK, performance pack is not certified on 98.
    That's why it's failing.
    Kumar
    Ramesh wrote:
    I get this when I try to run server6.0 on win98. can someone helpme understand what is wrong?
    Thanks!
    <Nov 17, 2001 4:17:16 PM CST> <Error> <Performance Pack> <Unable toload perform
    ance pack, using Java I/O.
    java.lang.UnsatisfiedLinkError: no muxer in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at weblogic.socket.PosixSocketMuxer.<init>(PosixSocketMuxer.java:90)
    at java.lang.Class.newInstance0(Native Method)

  • Weird java library path error

    I have the so file in the path and the file name is spelled correctly. Java still complains that the so file is not in the java.library.path. I used System.loadLibrary("Java_xDVDFSReader"). Is it possible that my so file is messed up? I included the gcc command I used to make it. I'm not familar w/ gcc so I'm not sure if the error comes from a "messed up" so file or not. Any suggestions? TIA
    [ttran@localhost Java-Library-Path]$ java FindJavaLibraryPath
    Library path: /usr/java/j2sdk1.4.2_02/jre/lib/i386/client:/usr/java/j2sdk1.4.2_02/jre/lib/i386:/usr/java/j2sdk1.4.2_02/jre/../lib/i386:/home/ttran/projects/Java_xDVDFSReader/final/
    [ttran@localhost Java-Library-Path]$ cd ../Java_xDVDFSReader/final/
    [ttran@localhost final]$ ls
    C-Lib Java_xDVDFSReader.so xDVDFSReader.class xDVDFSReader.java xDVDFSReader.java~
    [ttran@localhost final]$ pwd
    /home/ttran/projects/Java_xDVDFSReader/final
    [ttran@localhost final]$ java xDVDFSReader
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no Java_xDVDFSReader.so in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at xDVDFSReader.<clinit>(xDVDFSReader.java:15)
    [ttran@localhost final]$ cd C-Lib/
    [ttran@localhost C-Lib]$ make
    gcc -o ../Java_xDVDFSReader.so -shared -Wl,-soname,Java_xDVDFSReader.so -I/usr/java/j2sdk1.4.2_02/include -I/usr/java/j2sdk1.4.2_02/include/linux Java_xDVDFSReader.c -static -lc

    This thread contains the answer:
    http://forum.java.sun.com/thread.jsp?thread=298006&forum=54&message=1178476
    It's stupid to have to put "lib" infront of a so file. Whose fault is it? UNIX or Java ;)

  • No vdc in java.library.path error in performance reporting

    Has anyone ran into this issue? This is the error message I'm currently receiving while looking at the performance link in OEM reports. Everything else seems to work ok. Anyone know what file this is located in? Or where I'm going wrong?
    [Thread-160][2003-3-7:14:28:1:271] VtdService.Connect
    [Thread-160][2003-3-7:14:28:1:271] VtdService.getDataGatherer : [this=oracle.sysman.vtd.VtdService@44a5ec, m_dg=null, connect=true] initializing VtdDataGatherer for this service...
    [Thread-160][2003-3-7:14:28:1:271] VtdDataGatherer.&lt;init&gt;
    [Thread-160][2003-3-7:14:28:1:271] VtdcDataGatherer.initializeDirectConnect
    [Thread-160][2003-3-7:14:28:1:272] VtdException.&lt;init&gt;: Unable to locate the library necessary to support direct connect monitoring.
    java.lang.UnsatisfiedLinkError: no vdc in java.library.path

    Has anyone ran into this issue? This is the error message I'm currently receiving while looking at the performance link in OEM reports. Everything else seems to work ok. Anyone know what file this is located in? Or where I'm going wrong?
    [Thread-160][2003-3-7:14:28:1:271] VtdService.Connect
    [Thread-160][2003-3-7:14:28:1:271] VtdService.getDataGatherer : [this=oracle.sysman.vtd.VtdService@44a5ec, m_dg=null, connect=true] initializing VtdDataGatherer for this service...
    [Thread-160][2003-3-7:14:28:1:271] VtdDataGatherer.&lt;init&gt;
    [Thread-160][2003-3-7:14:28:1:271] VtdcDataGatherer.initializeDirectConnect
    [Thread-160][2003-3-7:14:28:1:272] VtdException.&lt;init&gt;: Unable to locate the library necessary to support direct connect monitoring.
    java.lang.UnsatisfiedLinkError: no vdc in java.library.path

  • Error when connecting to MySQL Database

    I am trying to connect to MySQL and receive an error everytime. I have attempted to talk to Bluehost (who my site is hosted thru) and they said it is not on their end and not something they can help me with. I set up a new MySQL Database with Bluehost and then set up the site through DW and everything went fine. I secured an ftp connection and went on to connect to MySQL. When I enter in my credentials for SQL Database, it returns:
    HTTP Error Code 404:
    Reason 1. No testing server running on the server machine.
    Reason 2. Testing server specified for this site deos not map to the http://my_domain.com/_mmServerScripts/MMHTPDB.php URL. Verify the URL Prefix maps to the site.
    The testing server model I am using is set to PHP MySQL and URL Prefix I am using (my_domain.com) is my website URL. I watched a YouTube video someone suggested elsewhere on how to add MMHTTPDB.php and mysql.php files to _mmServerScripts folder since the folder is empty but unfortunately, those files are not found on my computer. I assume they were supposed to be installed when I installed DW, but they are not here. I have done a general search of the comp and looked in each folder that was installed with DW and sadly, no files that match those names. What can I do? How can I make an SQL connection? Please help. It is greatly appreciated.
    -Sharon

    Your answer can be found somewhere in here http://forum.wampserver.com/read.php?2,83382,88694
    My hosts file (c:\windows\system32\drivers\etc\hosts) looks like
    # Copyright (c) 1993-2009 Microsoft Corp.
    # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
    # This file contains the mappings of IP addresses to host names. Each
    # entry should be kept on an individual line. The IP address should
    # be placed in the first column followed by the corresponding host name.
    # The IP address and the host name should be separated by at least one
    # space.
    # Additionally, comments (such as these) may be inserted on individual
    # lines or following the machine name denoted by a '#' symbol.
    # For example:
    #      102.54.94.97     rhino.acme.com          # source server
    #       38.25.63.10     x.acme.com              # x client host
    # localhost name resolution is handled within DNS itself.
        127.0.0.1       localhost
        ::1             localhost

  • Error when connecting applet to database

    Hi,
    I'm trying to make an applet that get data from database.
    I'm using this code to connect to database :
    try
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mydatabase","mypassword", "password");
    System.out.println("inside of connection");
         if(!con.isClosed())
              System.out.println("Successfully connected to MySQL server...");
              Statement st = con.createStatement();
              ResultSet s = st.executeQuery("SELECT myString FROM string");
                        while (s.next())
                             ad = s.getString("myString");
                             System.out.println(ad);
              catch(Exception e)
                   System.err.println("Exception: " + e.getMessage());
    It shows me error like this :
    java.lang.ExceptionInInitializerError
         at com.mysql.jdbc.Connection.<init>(Connection.java:1174)
         at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:264)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at java.sql.DriverManager.getConnection(Unknown Source)
         at com.inulsc.newsticker.connection.getString(connection.java:26)
         at com.inulsc.newsticker.NewsTicker.readFromDatabase(NewsTicker.java:481)
         at com.inulsc.newsticker.NewsTicker.init(NewsTicker.java:239)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.RuntimeException: Unable to initialize character set mapping tables
         at com.mysql.jdbc.CharsetMapping.<clinit>(CharsetMapping.java:73)
         ... 9 more
    I'm using Tomcat and I have copymysql-connector-java-3.1.13-bin download to C:\Tomcat 5.5\common\lib.
    Any one can help me please? I really need to solve this problem.
    I will appreciate any answer.
    Thanks,
    Vijay

    Thanks for you answer Jos, but honestly I don't know what I should do then, since I can't get data from database through the applet.
    I have read some articles that we can get data from database through the applet (they use tomcat too). I have followed what the article said, but I still get the error.
    Do you have any idea Jos? Thank you very much for your nice attention
    Warmnest regards,
    Vijay

  • 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

  • ERROR on AIX - no library weblogicoci36 (libweblogicoci36.a or .so) in java.library.path

    I have WLS 5.1 SP10 running successfully on all platforms (Solaris,
    HP-UX, NT/2000 and AIX). On AIX, I am unable to communicate with the
    Oracle instance. The error I am receiving is the well-known "no
    library weblogicoci36 (libweblogicoci36.a or .so) in
    java.library.path". The actual command and output are:
    [undertaker]/apps/weblogic2/weblogic/bin/oci816_8$ java utils.dbping
    ORACLE weblogic weblogic
    Error encountered:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message 'no library weblogicoci36 (libweblogicoci36.a or
    .so) in java.library.path'.
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
    at java.sql.DriverManager.getConnection(DriverManager.java:459)
    at java.sql.DriverManager.getConnection(DriverManager.java:108)
    at utils.dbping.main(dbping.java:156)
    I have followed the BEA recommended resolution steps, and the problem
    persists. While I have seen many posts about this problem on Solaris,
    NT and even HP-UX, I have not been seen posts with AIX as the
    platform. Any insight into why the problem is occuring is greatly
    appreciated. Here is the enviroment:
    1. AIX 4.3.3
    2. WLS 510 SP10
    3. Oracle 8.1.6
    ============= Setting Environment ================
    WL_HOME=/apps/weblogic2/weblogic
    JAVA_HOME=/usr/java_dev2
    CLIENT_CLASSES=/apps/weblogic2/weblogic/myserver/clientclasses
    SERVER_CLASSES=/apps/weblogic2/weblogic/myserver/serverclasses
    SERVLET_CLASSES=/apps/weblogic2/weblogic/myserver/servletclasses
    PATH=/usr/java_dev2/jre/sh:/usr/java_dev2/sh:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/apps/oracle/product/8.1.6/bin:/usr/local/bin:/usr/ucb
    CLASSPATH=/usr/java_dev2/lib/tools.jar:/apps/weblogic2/weblogic/license:/apps/weblogic2/weblogic/lib/weblogic510sp10.jar:/apps/weblogic2/weblogic/classes:/apps/weblogic2/weblogic/lib/weblogicaux.jar:/apps/weblogic2/weblogic/lib/aix/oci816_8:/apps/oracle/product/8.1.6/bin:/apps/oracle/product/8.1.6/lib:/apps/weblogic2/weblogic/bin/oci816_8:/apps/weblogic2/weblogic/myserver/clientclasses:/apps/weblo
    ic2/weblogic/myserver/serverclasses
    LIBPATH=/apps/weblogic2/weblogic/lib/aix:/apps/weblogic2/weblogic/lib/aix/oci816_8:/apps/oracle/product/8.1.6/lib
    Regards,
    Jeffrey Overton

    We have "worked around" this problem. We switched to the Oracle thin
    client driver and resolved the problem. We are still working with BEA
    Technical Support on this issue. I'll post updates as we get more
    information.
    [email protected] (Jeffrey Overton) wrote in message news:<[email protected]>...
    "Tom Gross" <[email protected]> wrote in message news:<[email protected]>...
    I haven't tried 5.1 on AIX, but I know in 6.0 there is an error in startWebLogic.sh
    specific to AIX: it exports "LIB_PATH" when it should say "LIBPATH". I just checked
    in the 5.1 script and it appears to have the same error. You need to change the
    name "LIB_PATH" to "LIBPATH". This error is fixed in 6.1 so we can be sure there
    is at least one other person on the planet who is trying to use Weblogic on AIX.
    :-)Tom,
    Thanks for the help. Unfortunately, I cannot find a reference to
    LIB_PATH in setEnv.sh or startWebLogic.sh. At this point, we are
    pursuing the possibility that the IBM JDK 1.2.2 introduced some
    incompatibilities. From the "IBM AIX Developer Kit, Java TM2
    Technology Edition, Version 1.2.2 README":
    "Because of incompatibility between the IBM AIX Developer Kit, Java
    TM2 Technology Edition, Version 1.2.2"..."JNI executable programs,
    including third-party software packages and those built for previous
    Java software releases on AIX, that were built without this binder
    option are NOT compatible with the JVM in this
    release"..."Compatibility of an executable program can be verified
    using dump -ov The stdout output will show the modtype to be "UR"..."A
    script file (convertJNI) is shipped in the directory
    /usr/java_dev2/sdk/sh. This script will help you to convert the
    modtype to UR in the optional header of your JNI executable programs
    without having to recompile the code."
    Out of the hundreds of potential files, which need to be converted?
    Based on additional information obtained by running in verbose mode,
    we were able to gather the following:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message '/apps/weblogic2/weblogic/lib/aix/oci816_8/libweblogicoci36.a:
    0509-130 Symbol resolution failed
    for /apps/oracle/product/8.1.6/lib/libclntsh.a(shr.o) because:
    0509-136 Symbol JNI_CreateJavaVM (number 253) is not
    exported from
    dependent module /usr/java_dev2/jre/bin/libjava.a.
    0509-136 Symbol JNI_GetDefaultJavaVMInitArgs (number 254) is
    not exported from
    dependent module /usr/java_dev2/jre/bin/libjava.a.
    0509-136 Symbol dlsym (number 255) is not exported from
    dependent module /usr/j'.
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
    at java.sql.DriverManager.getConnection(DriverManager.java:459)
    at java.sql.DriverManager.getConnection(DriverManager.java:108)
    at utils.dbping.main(dbping.java:156)
    We performed the dump -ov on each and each reported a modtype of RE
    instead of UR.
    We backed up libclntsh.a and libweblogicoci36.so, converted one at a
    time, and ran the dbping after each. No such luck. Any ideas on how
    we can find the JNI needle in the haystack?
    Regards,
    Jeffrey Overton

  • Runtime Error No sapjco3 in java library path.

    Hi All
    i am getting following error when i am trying to test sample sapjco 3 tutorial stepbystepclient.java.
    i have already added sapjco3.jar as external jars as well as in the the project folder as internal jars.
    *java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path*
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
         at java.lang.System.loadLibrary(System.java:1030)
         at com.sap.conn.jco.rt.DefaultJCoRuntime.loadLibrary(DefaultJCoRuntime.java:425
         at com.sap.conn.jco.rt.DefaultJCoRuntime.registerNativeMethods(DefaultJCoRuntim
    e.java:293)
         at com.sap.conn.jco.rt.JCoRuntime.registerNatives(JCoRuntime.java:891)
         at com.sap.conn.rfc.driver.CpicDriver.<clinit>(CpicDriver.java:948)
         at com.sap.conn.rfc.engine.DefaultRfcRuntime.getVersion(DefaultRfcRuntime.java:
    41)
         at com.sap.conn.rfc.api.RfcApi.RfcGetVersion(RfcApi.java:253)
         at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:195)
         at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:74)
         at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at com.sap.conn.jco.JCo.createJCo(JCo.java:51)
         at com.sap.conn.jco.JCo.<clinit>(JCo.java:25)
         at com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.
    java:61)
         at src.sampleJCO.step1Connect(sampleJCO.java:84)
         at src.sampleJCO.main(sampleJCO.java:314)
    Exception in thread "main" java.lang.ExceptionInInitializerError: Error getting
    the version of the native layer: java.lang.UnsatisfiedLinkError: com.sap.conn.rf
    c.driver.CpicDriver.nativeCpicGetVersion([I)I
         at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:207)
         at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:74)
         at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at com.sap.conn.jco.JCo.createJCo(JCo.java:51)
         at com.sap.conn.jco.JCo.<clinit>(JCo.java:25)
         at com.sap.conn.jco.JCoDestinationManager.getDestination(JCoDestinationManager.
    java:61)
         at src.sampleJCO.step1Connect(sampleJCO.java:84)
         at src.sampleJCO.main(sampleJCO.java:314)
    I am quite new to java development in SAP.Is it ok to have commonly used application being developed using SAPJCO?
    Regards
    Shankar
    Edited by: Shankar on Sep 16, 2009 5:40 PM

    Hi Shankar,
         Have you dealed with your problems,I can use java throw jco connect to sap rfc,but when i use jsp call the object's method , then report erro as following:
    java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
              at java.lang.ClassLoader.loadLibrary(Unknown Source)
              at java.lang.Runtime.loadLibrary0(Unknown Source)
              at java.lang.System.loadLibrary(Unknown Source)
              at com.sap.conn.jco.rt.DefaultJCoRuntime.loadLibrary(DefaultJCoRuntime.java:421)
              at com.sap.conn.jco.rt.DefaultJCoRuntime.registerNativeMethods(DefaultJCoRuntime.java:290)
              at com.sap.conn.jco.rt.JCoRuntime.registerNatives(JCoRuntime.java:862)
              at com.sap.conn.rfc.driver.CpicDriver.<clinit>(CpicDriver.java:947)
              at com.sap.conn.rfc.engine.DefaultRfcRuntime.getVersion(DefaultRfcRuntime.java:41)
              at com.sap.conn.rfc.api.RfcApi.RfcGetVersion(RfcApi.java:213)
              at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:186)
              at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:73)
              at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
              at com.sap.conn.jco.rt.RuntimeEnvironment.setDestinationDataProvider(RuntimeEnvironment.java:117)
              at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:174)
              at omec.com.sap.tools.ERPConnection.<init>(ERPConnection.java:26)
              at omec.com.sap.tools.ERPImpStruct.ConnectERP(ERPImpStruct.java:69)
              at omec.com.servlet.ScancodeServlet.doPost(ScancodeServlet.java:45)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
              at java.lang.Thread.run(Unknown Source)
    Attributes:
    Attributes:
    2013-1-4 10:46:21 org.apache.catalina.core.StandardWrapperValve invoke
    严重: Servlet.service() for servlet ScanServlet threw exception
    java.lang.NoClassDefFoundError: com.sap.conn.rfc.driver.CpicDriver
              at com.sap.conn.rfc.engine.DefaultRfcRuntime.createChannel(DefaultRfcRuntime.java:52)
              at com.sap.conn.rfc.engine.RfcIoOpenCntl.open_channel(RfcIoOpenCntl.java:1260)
              at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcopen(RfcIoControl.java:85)
              at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:83)
              at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1107)
              at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:659)
              at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)
              at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:171)
              at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:44)
              at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:160)
              at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:754)
              at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:615)
              at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:26)
              at omec.com.sap.tools.ERPConnection.<init>(ERPConnection.java:30)
              at omec.com.sap.tools.ERPImpStruct.ConnectERP(ERPImpStruct.java:69)
              at omec.com.servlet.ScancodeServlet.doPost(ScancodeServlet.java:45)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
              at java.lang.Thread.run(Unknown Source)

  • Error: no jmvfw in java.library.path

    Hello
    Exception in thread "VFW Request Thread" java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: no jmvfw in java.library.path
         at com.sun.media.JMFSecurityManager.loadLibrary(JMFSecurityManager.java:206)
         at com.sun.media.protocol.vfw.VFWCapture.<clinit>(VFWCapture.java:19)
         at com.sun.media.protocol.vfw.VFWSourceStream.doConnect(VFWSourceStream.java:241)
         at com.sun.media.protocol.vfw.VFWSourceStream.run(VFWSourceStream.java:763)
         at java.lang.Thread.run(Thread.java:595)I get this error when use jdk1.5.0 but I don't have it when use older JDK...
    Anyone could know why it happens and how to make it working with JDK1.5.0??
    Thx
    Bartek

    SunForumsGuest wrote:
    FYI -- For some reason, on my Win7 x64 machine, if I installed JMF and the option "move dlls to windows/system" directory was checked, those DLLs were never installed on my system.
    If you UNCHECK that during install they will show up in the JMF/lib directory.
    C:\Program Files (x86)\JMF2.1.1e\lib
    Hope it helps. I've been going nuts until I just figured that out.Hello,
    thanks for the tip - I followed your instructions and have the dlls. However, when I try running some code, this error occurs:
    jmvfw.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform
    I cannot find dll's compiled for 64-bit on the Internet; has anybody else faced this problem?
    I use Netbeans under Win7.

  • Error: "no jsafe in java.library.path"

    I am getting the following error when Weblogic starts:
    java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
    What does this mean, and how do I fix it?
    I am running WL5.1 on HP-UX11. Thanks!
    Rick Cole
    [email protected]

    try adding
    -Dweblogic.security.SSL.useJava=true
    to your startup script
    Rick Cole wrote:
    I am getting the following error when Weblogic starts:
    java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
    What does this mean, and how do I fix it?
    I am running WL5.1 on HP-UX11. Thanks!
    Rick Cole
    [email protected]
    Please remember to ALWAYS Reference Your Case Number in the subject
    line.
    Ian Kushnir
    Technical Support Engineer - North Sydney
    BEA Systems
    Phone: +61-2-9923 4043
    Mobile: +61-417 889 336 or 0417 889 336
    Fax: +61-2-9923 4080
    Email: [email protected]

  • Mac OS X 10.4.x and error no ocijdbc10 in java.library.path

    Hi all,
    I installed Oracle Instant Client 10.1.0.3 on my Mac OS X 10.4 (PPC). I stored this client into path /usr/local/oracle/instantclient10_1. I set all properties as PATH, ORACLE_HOME, DYLD_LIBRARY_PATH, etc...
    export set ORACLE_HOME=/usr/local/oracle/instantclient10_1
    export set DYLD_LIBRARY_PATH=$ORACLE_HOME
    export set LD_LIBRARY_PATH=$ORACLE_HOME
    export set SQLPATH=$ORACLE_HOME
    export set TNS_ADMIN=$ORACLE_HOME
    export set PATH=$PATH:$ORACLE_HOME
    When I use SQLPLUS all work correctly but when I use JDBC OCI driver I got error no ocijdbc10 in java.library.path. But when I show system property java.library.path I can see this: java.library.path ==> /usr/local/oracle/instantclient10_1:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
    Can you somebody help with it. Thanx
    Edited by: user2258172 on 4.6.2009 7:21

    I am not familiar with Mac OS, but there are two things I can think of that you can check:
    - This is trivial, and you probably did that: ist libocijdbc10.dylib in /usr/local/oracle/instantclient10_1 ?
    - Could it be that Java is 32-bit and libocijdbc10.dylib is 64-bit or vice versa?
    Yours,
    Laurenz Albe

Maybe you are looking for

  • Can't download Itunes to my new computer using windows 8.1

    I have tried to download Itunes and it pulls up the selection of a directory and then does nothing

  • Replacement ipod headphones

    i got an ipod touch in july 2008 from Amazon and the supplied headphone have broken, would i still be able to get replacements under the 1 year warranty from an apple store if i took along a print off of the order form ? i know people will say apple

  • Misguided BT Loyalist trying to leave

    I have reached the end of the line with BT simply because no package exists any more for people like me. I make very few social calls of more than a few minutes duration and have absolutely no need for free weekend or evening calls whatsoever, I norm

  • PDF view when opening

    How can I save a compiled PDF so it opens in the split vertical view?

  • OJIm43

    I downloaded and installed Adobe Photoshop Elements 10 but I can't access the organizer. It appears no where. What am I supposed to do to get the page up with the Organizer and editing functions?