Java.lang.UnsatisfiedLinkError on Linux

Hi,
I've got some Java code compiled which works
fine for others on a Windows machine. The same code, when run on Linux using the latest
tarball (oracle8161SE_tar.gz) for the 8i server gives me the following error when run:
I searched here but didn't find anything yet. If someone can point me in the right direction, I'd really appreciate it.
java.lang.UnsatisfiedLinkError: get_db_version_number
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:83)
at java.sql.DriverManager.getConnection(DriverManager.java:126)
Thanks,
L
null

This error can occur also if a dependency of your library can not be loaded.
For instance if your library mylib use some function of saying libX, and has been linked in such a way that the dynamic labrary contains a reference to it, this library must be available at runtime.
Check your LD_LIBRARY_PATH for all dependencies of your library.
(note that the classpath is not used by the dynamic loader)

Similar Messages

  • Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no Linux

    Trying to start demo from Sun commapi:
    $ java SimpleRead
    Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.library.path
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at SimpleRead.main(SimpleRead.java:67)
    Caused by: java.lang.NullPointerException
    at javax.comm.CommPortIdentifier.findConfFile(CommPortIdentifier.java:199)
    at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:117)
    ... 1 more
    What does it need?
    java version "1.5.0_04" on Linux 2.6.10-1.770_FC2smp

    hey i have the exact same problem, this is the error:
    # java BlackBox
    Error loading LinuxSerialParallel: java.lang.UnsatisfiedLinkError: no LinuxSerialParallel in java.library.path
    Exception in thread "main" java.lang.UnsatisfiedLinkError: isDevLink
    at com.sun.comm.Unix.isDevLink(Native Method)
    at com.sun.comm.PathBundle.add(PathBundle.java:108)
    at com.sun.comm.PlatformPortBundle.<init>(PlatformPortBundle.java:44)
    at javax.comm.CommPortIdentifier.<clinit>(CommPortIdentifier.java:138)
    at BlackBox.main(BlackBox.java:223)
    what can i do?
    P.D: i also hate this fvasldkfmnlds API, but i need it

  • DBCA fails with java.lang.UnsatisfiedLinkError: Can't load library: /u01/oracle/prod/tech_st/product/11.2.0/db_1/oui/lib/linux/liboraInstaller.so Error in Oracle 11g

    Hi,
    After ORACLE 11G software installation i tried to change the ORACLE_HOME directory.
    OS : RHEL 4.5
    DB : 11.2.0
    Previous Home Location :
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/oracle/prod/tech_st/product/11.2.0/db_1
    Current Home Loc:
    [oracle@localhost ~]$ echo $ORACLE_HOME
    /u01/oracle/db/tech_st/product/11.2.0/db_1
    When i am trying the DBCA command i am getting the below error:
    [oracle@localhost ~]$ dbca
    java.lang.UnsatisfiedLinkError: Can't load library: /u01/oracle/prod/tech_st/product/11.2.0/db_1/oui/lib/linux/liboraInstaller.so
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
            at java.lang.Runtime.load0(Runtime.java:769)
            at java.lang.System.load(System.java:968)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:387)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:122)
            at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(OiipgPropertyLoader.java:212)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.<clinit>(OiipgPropertyLoader.java:125)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(OiicStandardInventorySession.java:492)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:266)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:240)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:189)
            at oracle.sysman.assistants.util.InventoryUtil.getOUIInvSession(InventoryUtil.java:346)
            at oracle.sysman.assistants.util.InventoryUtil.getHomeName(InventoryUtil.java:87)
            at oracle.sysman.assistants.util.OracleHome.getInventoryHomeName(OracleHome.java:1023)
            at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:798)
            at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
            at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
            at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
            at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
            at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no oraInstaller in java.library.path
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:405)
            at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:122)
            at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.getEnv(OiipgEnvironment.java:201)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.initUnixPtrFileLoc(OiipgPropertyLoader.java:212)
            at oracle.sysman.oii.oiip.oiipg.OiipgPropertyLoader.<clinit>(OiipgPropertyLoader.java:125)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.updateProperties(OiicStandardInventorySession.java:492)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:266)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:240)
            at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:189)
            at oracle.sysman.assistants.util.InventoryUtil.getOUIInvSession(InventoryUtil.java:346)
            at oracle.sysman.assistants.util.InventoryUtil.getHomeName(InventoryUtil.java:87)
            at oracle.sysman.assistants.util.OracleHome.getInventoryHomeName(OracleHome.java:1023)
            at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:798)
            at oracle.sysman.assistants.dbca.ui.UIHost.<init>(UIHost.java:257)
            at oracle.sysman.assistants.dbca.ui.InteractiveHost.<init>(InteractiveHost.java:54)
            at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:164)
            at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
            at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
    [oracle@localhost ~]$
    I tried all possible ways with google help but still i am facing the same issue.Kindly check and suggest to solve the issue.
    Thanks in advance.
    Vijay.

    Hi all,
    I give you the clear details about the issue what i am currently facing,
    1. I installed the 11g (11.2.0) database alone(No EBS) in my local vmware machine.
    2. Created my ORACLE_HOME under /u01/oracle/prod/tech_st/product/11.2.0/db_1 directory after that i tried to change my home location from /u01/oracle/prod/tech_st/product/11.2.0/db_1 location to /u01/oracle/db/tech_st/product/11.2.0/db_1 location, like created /u01/oracle/db directory and moved files from /u01/oracle/prod location.
    3. I changed my bash_profile and exported home with the modified location also deregistered an old home and registered the new home.
    4. When i am issuing echo $ORACLE_HOME it is showing the current home location and ORACLE_SID is same what i created before.
    5. But when i am trying to create one more db using DBCA utility it is through the above error.
    Please suggest me is it possible to change the location after db creation or any extra steps i have to do for this issue.
    Thanks.

  • "Exception in thread "main" java.lang.UnsatisfiedLinkError:"  JNI in Linux

    Hi,
    I am writing a simple program to understand how JNI works so that I can use this concept to develop a project. But after running the simple code,
    It gives the following error:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: sum
    at TestJni.main(testJni.java:25)
    My Java code is:
    import java.io.*;
    import java.util.*;
    class TestJni
    // Try to load the native Code library for user Authentication.
    static
    try
    System.loadLibrary( "test" );
    catch( UnsatisfiedLinkError e )
    System.out.println("Could not load native code for user authentication." );
    System.exit(1);
    public static void main( String [] args )
    //TestJni obj = new TestJni();
    System.out.println(TestJni.sum(2, 3));
    public static native int sum( int x, int y );
    TestJni.h looks like:
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class TestJni */
    #ifndef IncludedTestJni
    #define IncludedTestJni
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class: TestJni
    * Method: sum
    * Signature: (II)I
    JNIEXPORT jint JNICALL Java_TestJni_sum
    (JNIEnv *, jclass, jint, jint);
    #ifdef __cplusplus
    #endif
    #endif
    and my C++ code is:
    #include <jni.h>
    #include "TestJni.h"
    #include <stdio.h>
    JNIEXPORT jint JNICALL Java_TestJni_sum(JNIEnv *env, jclass obj, jint x, jint y)
    printf("Inside the native function\n");
    return (x + y);
    Then I am generating my .so file as:
    g++ -o libtest.so sum.cpp -shared -fpic -lcrypt -I//usr/lib/j2se/1.4/include -I/usr/lib/j2se/1.4/include/linux
    and copying the libtest.so file into the folder where I have my TestJni.class file. Then running the java code by:
    java TestJni
    but it gives the "UnsatisfiedLinkError". What to do? :( I have spend 2 days now to solve this problem but I am not getting it.
    I am using ubuntu 7.10 as my OS.
    Please let me know if you can help.

    Thanks for your response. I found that, when I copied the shared library to /usr/lib and
    did: ldconfig -n /usr/lib it worked
    But the problem is, this is my computer, but the computers that I am going to run my actual
    JNI application, have restrictive permission. Could anyone please let me know how I can
    do the work without ldconfig. I mean is there anyway I can configure my .so file's path without
    copying it into the /usr/lib folder and without ldconfig?
    I will appreciate any reply. Thanks.

  • Java.lang.UnsatisfiedLinkError: /usr/local/weblogic/lib/linux/libweblogicunix1.so

    Hi.
    This is my configuration
    Red Hat Linux 6.2 kernel 2.2.14-6
    512 Mb Ram
    Bea Weblogic Server 5.1 Service Pack 9
    It runs fine with jdk 1.2.2; but when I try it with 1.3.1 I get this error (please
    see below)
    This is my installation secuence
    1. Downloaded jdk 1.3.1 tarball for linux from www.java.sun.com & installed according
    with instrucctions.
    2. changed JAVA_HOME from /usr/lib/jre1.2.2/ to /usr/lib/jdk1.3.1/ in the startWebLogic
    script
    trying it I get:
    "Green threads support not available
    Could not create the Java virtual machine."
    3. changed JAVA_OPTIONS from -green to -native
    After that i got the error subject of this message (please see below)
    I have searched this newsgroup for a similar post but found an unsolved message
    on april 12, 2001.
    Any ideas?
    Thanks in advance
    Sergio Ríos
    Ps: this is my error
    Thu May 24 15:51:13 CDT 2001:<I> <ListenThread> Listening on port: 90
    Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> System has file descriptor
    limits of - soft: '1024', hard: '1024'
    Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> Using effective file
    descriptor limit of: '1024' open sockets/files.
    Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> Allocating: '3' POSIX
    reader threads
    Thu May 24 15:51:13 CDT 2001:<A> <SSLListenThread> ListenThread.run() failed:
    java.lang.UnsatisfiedLinkError: /usr/local/weblogic/lib/linux/libweblogicunix1.so:
    /usr/local/weblogic/lib/linux/libweblogicunix1.so: undefined symbol: makeCString
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at weblogic.platform.Unix.<init>(Unix.java:14)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at weblogic.platform.OperatingSystem.getOS(OperatingSystem.java:81)
    at weblogic.t3.srvr.T3Srvr$1.run(T3Srvr.java:1160)
    at weblogic.t3.srvr.Callback.done(Callback.java:37)
    at weblogic.t3.srvr.SSLListenThread.newServerSocket(SSLListenThread.java:474)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:254)
    Thu May 24 15:51:13 CDT 2001:<!> <SSLListenThread> **** The WebLogic Server is
    no longer listening for connections.
    Thu May 24 15:51:13 CDT 2001:<!> <SSLListenThread> **** You should probably restart
    it.
    Thu May 24 15:51:13 CDT 2001:<I> <WebLogicServer> Server shutdown by system
    Thu May 24 15:52:14 CDT 2001:<I> <WebLogicServer> WebLogic Server started
    Thu May 24 15:52:14 CDT 2001:<I> <WebLogicServer> Server shutdown commencing NOW
    Thu May 24 15:52:15 CDT 2001:<I> <HTTP> Destroying servlets in default servlet
    context.
    Thu May 24 15:52:15 CDT 2001:<I> <WebLogicServer> Requesting thread shutdown
    Thu May 24 15:52:15 CDT 2001:<I> <SSLListenThread> Shutting down Thread[SSLListenThread,5,]
    Thu May 24 15:52:15 CDT 2001:<I> <ListenThread> Shutting down Thread[ListenThread,5,WebLogicServer]
    Thu May 24 15:52:15 CDT 2001:<I> <WebLogicServer> Waiting: '20' seconds for threads
    to complete shutdown
    Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Invoking garbage collection
    Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: Before free/total=62768288/66846720
    (93%)
    Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: After free/total=64551016/66846720
    (96%)
    Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Invoking garbage collection
    Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: Before free/total=64544984/66846720
    (96%)
    Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: After free/total=64550992/66846720
    (96%)
    Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Shutting down execute threads
    Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Shutdown completed

    Thanks because JDK 1.3 is not supported with WLS 5.1. See:
    http://www.weblogic.com/platforms/index.html
    However, WLS 6.0 supports JDK 1.3 since the JDK is already bundled with WLS
    6.0.
    Sergio Ríos wrote:
    >
    Hi.
    This is my configuration
    Red Hat Linux 6.2 kernel 2.2.14-6
    512 Mb Ram
    Bea Weblogic Server 5.1 Service Pack 9
    It runs fine with jdk 1.2.2; but when I try it with 1.3.1 I get this error
    (please see below)
    This is my installation secuence
    1. Downloaded jdk 1.3.1 tarball for linux from www.java.sun.com &
    installed according with instrucctions.
    2. changed JAVA_HOME from /usr/lib/jre1.2.2/ to /usr/lib/jdk1.3.1/ in the
    startWebLogic script
    trying it I get:
    "Green threads support not available
    Could not create the Java virtual machine."
    3. changed JAVA_OPTIONS from -green to -native
    After that i got the error subject of this message (please see below)
    I have searched this newsgroup for a similar post but found an unsolved
    message on april 12, 2001.
    Any ideas?
    Thanks in advance
    Sergio Ríos
    Ps: this is my error
    Thu May 24 15:51:13 CDT 2001:<I> <ListenThread> Listening on port: 90
    Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> System has file
    descriptor limits of - soft: '1024', hard: '1024'
    Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> Using effective
    file descriptor limit of: '1024' open sockets/files.
    Thu May 24 15:51:13 CDT 2001:<I> <Posix Performance Pack> Allocating: '3'
    POSIX reader threads
    Thu May 24 15:51:13 CDT 2001:<A> <SSLListenThread> ListenThread.run()
    failed:
    java.lang.UnsatisfiedLinkError:
    /usr/local/weblogic/lib/linux/libweblogicunix1.so:
    /usr/local/weblogic/lib/linux/libweblogicunix1.so: undefined symbol:
    makeCString
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
    at java.lang.Runtime.loadLibrary0(Runtime.java:749)
    at java.lang.System.loadLibrary(System.java:820)
    at weblogic.platform.Unix.<init>(Unix.java:14)
    at java.lang.Class.newInstance0(Native Method)
    at java.lang.Class.newInstance(Class.java:237)
    at
    weblogic.platform.OperatingSystem.getOS(OperatingSystem.java:81)
    at weblogic.t3.srvr.T3Srvr$1.run(T3Srvr.java:1160) at
    weblogic.t3.srvr.Callback.done(Callback.java:37) at
    weblogic.t3.srvr.SSLListenThread.newServerSocket(SSLListenThread.java:474)
    at weblogic.t3.srvr.ListenThread.run(ListenThread.java:254)
    Thu May 24 15:51:13 CDT 2001:<!> <SSLListenThread> **** The WebLogic
    Server is no longer listening for connections.
    Thu May 24 15:51:13 CDT 2001:<!> <SSLListenThread> **** You should
    probably restart it.
    Thu May 24 15:51:13 CDT 2001:<I> <WebLogicServer> Server shutdown by
    system Thu May 24 15:52:14 CDT 2001:<I> <WebLogicServer> WebLogic Server
    started Thu May 24 15:52:14 CDT 2001:<I> <WebLogicServer> Server shutdown
    commencing NOW Thu May 24 15:52:15 CDT 2001:<I> <HTTP> Destroying servlets
    in default servlet context.
    Thu May 24 15:52:15 CDT 2001:<I> <WebLogicServer> Requesting thread
    shutdown Thu May 24 15:52:15 CDT 2001:<I> <SSLListenThread> Shutting down
    Thread[SSLListenThread,5,] Thu May 24 15:52:15 CDT 2001:<I> <ListenThread>
    Shutting down Thread[ListenThread,5,WebLogicServer] Thu May 24 15:52:15
    CDT 2001:<I> <WebLogicServer> Waiting: '20' seconds for threads to
    complete shutdown Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer>
    Invoking garbage collection Thu May 24 15:52:35 CDT 2001:<I> <GC> GC:
    Before free/total=62768288/66846720 (93%)
    Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: After
    free/total=64551016/66846720 (96%)
    Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Invoking garbage
    collection Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: Before
    free/total=64544984/66846720 (96%)
    Thu May 24 15:52:35 CDT 2001:<I> <GC> GC: After
    free/total=64550992/66846720 (96%)
    Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Shutting down execute
    threads Thu May 24 15:52:35 CDT 2001:<I> <WebLogicServer> Shutdown
    completed

  • Java.lang.UnsatisfiedLinkError: ../linux-x86-suse/lib/libmicrowindowsawt.so

    Hi,
    I just downloaded "j2me_pbp-1_0_2-src.zip" from http://www.sun.com/software/communitysource/j2me/pbp/download.xml and also downloaded "microwin-sun-11_jun_2002.tar.gz" .After I maked them, and want to test a demo case I found a error. Any one who know the reason?
    Thanks!
    [huw@jupiter linux-x86-suse]$ ./bin/cvm -classpath "./test.zip" PBPDemoFrame
    java.lang.UnsatisfiedLinkError: /home/huw/j2me_pbp-1_0_2-src/basis/build/linux-x86-suse/lib/libmicrowindowsawt.so
    at java.lang.ClassLoader$NativeLibrary.load(Ljava/lang/String;)V(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;ZZ)Ljava/lang/Object;(Unknown Source)
    at java.lang.ClassLoader.loadLibrary0(Ljava/lang/Class;Ljava/io/File;Z)Ljava/lang/Object;(Unknown Source)
    at java.lang.ClassLoader.loadLibraryInternal(Ljava/lang/Class;Ljava/lang/String;ZZ)Ljava/lang/Object;(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Ljava/lang/Class;Ljava/lang/String;Z)V(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Ljava/lang/Class;Ljava/lang/String;)V(Unknown Source)
    at java.lang.System.loadLibrary(Ljava/lang/String;)V(Unknown Source)
    at sun.security.action.LoadLibraryAction.run()Ljava/lang/Object;(Unknown Source)
    at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(Unknown Source)
    at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Unknown Source)
    at java.awt.MWGraphicsEnvironment.<init>()V(Unknown Source)
    at java.awt.MWToolkit.<init>()V(Unknown Source)
    at java.lang.reflect.Constructor.newInstance([Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
            at java.lang.Class.newInstance()Ljava/lang/Object;(Unknown Source)
            at java.awt.Toolkit$1.run()Ljava/lang/Object;(Unknown Source)
            at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;(Unknown Source)
            at java.security.AccessController.doPrivileged(Ljava/security/PrivilegedAction;)Ljava/lang/Object;(Unknown Source)
            at java.awt.Toolkit.getDefaultToolkit()Ljava/awt/Toolkit;(Unknown Source)
            at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment()Ljava/awt/GraphicsEnvironment;(Unknown Source)
            at java.awt.Window.<init>(Ljava/awt/GraphicsConfiguration;)V(Unknown Source)
            at java.awt.Frame.<init>(Ljava/lang/String;Ljava/awt/GraphicsConfiguration;)V(Unknown Source)
            at java.awt.Frame.<init>()V(Unknown Source)
            at PBPDemoFrame.<init>([Ljava/lang/String;)V(Unknown Source)
            at PBPDemoFrame.main([Ljava/lang/String;)V(Unknown Source)
            at java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;(Unknown Source)
            at sun.misc.CVM.runMain()V(Unknown Source)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    A late reply,
    I can not help you but do you have the PBP 1.0 you mentioned above, because I can not download it it anywere. The PBP 1.1 is not problem to get.
    It seems SUN removed the download from there site.
    Robert

  • Java.lang.UnsatisfiedLinkError: ocijdbc9.dll: Can't find dependent librarie

    Hi all,
    I have written a simple code to connect to Oracle9i in WindowsXP.
    Oracle is installed and running on Linux machne on the Intranet.
    I have set 'classes12.jar' in classpath and placed following dlls in "C:\WINDOWS\system32" path
    ocijdbc9.dll
    ocijdbc9_g.dll
    heteroxa9.dll
    heteroxa9_g.dll
    Following is the part of code:
    public String dbName = new String("jdbc:oracle:oci8:username/password@sid_192.168.0.128");
    public String dbClassName = new String("oracle.jdbc.driver.OracleDriver");
    Class.forName(dbClassName);
    conection = DriverManager.getConnection(dbName);
    statement = conection.createStatement();
    When I run this code got following errors:
    java.lang.UnsatisfiedLinkError: C:\WINDOWS\system32\ocijdbc9.dll: Can't find dependent libraries
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1485)
         at java.lang.Runtime.loadLibrary0(Runtime.java:788)
         at java.lang.System.loadLibrary(System.java:834)
         at oracle.jdbc.oci8.OCIDBAccess.logon(OCIDBAccess.java:262)
         at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
         at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
         at java.sql.DriverManager.getConnection(DriverManager.java:512)
         at java.sql.DriverManager.getConnection(DriverManager.java:193)
         at menus.SQLShelfManager.openDBconnecton(SQLShelfManager.java:46)
         at menus.SQLShelfManager.main(SQLShelfManager.java:129)
    Exception in thread "main"
    Please guide me, what I am missing? Thanks in advance...

    There are only a very very few and rare good reasons to use the oci8 driver with Java (and I can't remember any of them at the moment). Performance is not one of them. If at all possible, you should use the Type IV (thin) driver instead.
    The classes12.jar (or zip) is for use with Java 1.2 and 1.3. There are different versions of this jar for each version of the database, but they're fundamentally cross-compatible; all the post-8i drivers are supposed to work with all the post-8i databases (and the 8i stuff also mostly works too). There's been a succession of bug fixes and minor functional changes, as well as some very substantial perfromance improvements. If you are developing brand-new code, I very stongly encourage you to use the very latest driver (currently 10.2.0.1, I think). If you are using a Java version greater than 1.3, then you should use the ojdbc14.jar instead (and don't try to use both classes12.jar and ojdbc14.jar, they have the sameclasses in them). I think the 10.2.0.1 ojdb14.jar was the first one certified for Java 1.5, and it's significantly faster than the 9i drivers. Anyone considering an upgrade of drivers should plan to do a good regression test; as mentioned before, there are some very small functional differences. You can download the latest drivers here:
    http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    If you insist on using oci, then you probably need to do an Oracle client installation on your Windows box. If you stay with the 9i driver, the full client install is huge; however, you can almost certainly use the 10g "Instant Client", which is a pared-down version, with just the minimal stuff to support an application. That's available here:
    http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html

  • Java.lang.UnsatisfiedLinkError: com/edifecs/xengine/xeobjects/XEHelper.cre

    Protocol Name : EDI_X12
    Document Verison : V4010
    Document Type : 850
    Document Definition as : EDI_X12-V4010-850-850def
    Listening Channel :
    Protocol : Generic File 1.0
    Tansport Protocol Parameter :
    Folder Name :/u01/ftp_root/Inbound (A folder on Server)
    File Format : %FROM_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.dat
    Preserve File Name : Enabled(Checked)
    Host Trading Partner :
    Profile :Vallues Given for following Identifier Types
    Identifier Type : EDI Group ID , EDI Interchange ID , EDI Group ID Qualifier,EDI Interchange ID Qualifier
    Document : EDI_X12-V4010-850-850def (Receiver = Checked)
    It's Receiver of the Document.
    Host Channel :
    Protocol : Generic File 1.0
    Tansport Protocol Parameter :
    Folder Name :/u01/ftp_root/Outbound (A folder on Server)
    Remote Trading Partner:
    Profile :Vallues Given for following Identifier Types
    Identifier Type : EDI Group ID , EDI Interchange ID , EDI Group ID Qualifier,EDI Interchange ID Qualifier
    Document : EDI_X12-V4010-850-850def (Sender= Checked)
    It's Sender of the Document.
    Agreement Direction :
    From Remote Trading partner --> To Host Trading Partner
    Agreement Parameters : Only Translate = Checked.
    Identifier are selected and channels specifies in the Agreement as required.
    Note :
    1. .ecs , .xsd and .dat files were generated by B2B Doc Builder
    2. File saved in format as :
    %FROM_PARTY%_%DOCTYPE_NAME%_%DOCTYPE_REVISION%.dat
    Following are the installation specifications :-
    1. OS Linux 64 bit with JRocket 64 bit. (Yes Verified)
    2. Environment :Single (Not-Clustered) (Yes Verified)
    3. XEngine Installed and Installation Tested. (Yes Verified)
    4. LD_LIBRARY_PATH set (Yes Verified)
    5. Other Xengine Environment Variables are set. (Yes Verified)
    Problem I am facing are:
    1. While creating agreement following parameter need to be "checked" if we wish to get a translation of document from EDI-->XML
    "Agreement Parameters : Only Translate = Checked.
    If I don't check Translation,means if I don't enable translation.It works fine.
    File is picked from Source location and Dropped into Destination Via B2B
    However if I check(Enable) Translation it's giving Processing Error java.lang.UnsatisfiedLinkError"
    Server.log says :
    [d03-c02-s01] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@23e23fcf] [userId: <anonymous>] [ecid: 11d1def534ea1be0:507ef52a:12f581580da:-8000-0000000000059a10,0] [APP: soa-infra] java.lang.UnsatisfiedLinkError: com/edifecs/xengine/xeobjects/XEHelper.createN2XNative()Lcom/edifecs/xengine/xeobjects/XEDataProc;[[
         at com.edifecs.xengine.xeobjects.XEHelper.createN2X(Unknown Source)
         at oracle.tip.b2b.document.edi.EDIDocumentPlugin.processIncomingDocument(EDIDocumentPlugin.java:1113)
         at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2488)
         at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1638)
         at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:3978)
         at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3654)
         at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3127)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:619)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:220)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    java.lang.UnsatisfiedLinkError: com/edifecs/xengine/xeobjects/XEHelper.createN2XNative()Lcom/edifecs/xengine/xeobjects/XEDataProc;
         at com.edifecs.xengine.xeobjects.XEHelper.createN2X(Unknown Source)
         at oracle.tip.b2b.document.edi.EDIDocumentPlugin.processIncomingDocument(EDIDocumentPlugin.java:1113)
         at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2488)
         at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1638)
         at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:3978)
         at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3654)
         at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3127)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:619)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:220)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    [2011-04-18T09:46:36.241+02:00] [d03-c02-s01] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@23e23fcf] [userId: <anonymous>] [ecid: 11d1def534ea1be0:507ef52a:12f581580da:-8000-0000000000059a10,0] [APP: soa-infra] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0[[
         at java.util.ArrayList.RangeCheck(ArrayList.java:547)
         at java.util.ArrayList.get(ArrayList.java:322)
         at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:2894)
         at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1638)
         at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:3978)
         at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:3654)
         at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:3127)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:619)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:220)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    Suggestions/Help/Guidence are welcome.
    Am struck on this ..
    Thanks in advance to B2B community for the help..

    Hi Anuj,
    I spoke to Oracle and they found that we have JRocket 64 bit installed.
    However they recommend JDK 64 bit for the Development Environment.
    And we are gonna do a Fresh SOA installation in a day.
    SOA Verison is : 11.1.1.4
    I hope this may help us.
    Thanks Anuj for continous help.
    Thanks
    Vivek

  • Exception in thread "main" java.lang.UnsatisfiedLinkError: - fresh Install

    Pls can someone help me out. I have a similar problem to the one raised in this thread.
    I want to install 10g Release 2 on a RHEL AS4 Production IBM server. I've followed the installation guide to the letter!
    I keep getting this error:
    [oracle@pencomlx2 database]$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-07-08_04-07-07PM. Please wait ...[oracle@pencomlx2 database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2007-07-08_04-07-07PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.<clinit>(Unknown Source)
    at java.awt.Component.<clinit>(Unknown Source)
    Pls can someone help out b4 i loose my mind!
    Kwex.

    This thread has a similar issue as the one addressed here: Re: Installation on Unbreakable Linux.
    ~ Madrid.

  • Java.lang.UnsatisfiedLinkError: running tomcat on java headless?

    Dear all,
    I'm using the iText library to generate pdfs from a database on the fly. Whenever I use some of it's features that require simple things like java.awt.Color, I get an java.lang.UnsatisfiedLinkError as shown:
    java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-1.5.0-sun-1.5.0.18/jre/lib/amd64/libawt.so: libmlib_image.so: cannot open shared object file: No such file or directory
            at java.lang.ClassLoader$NativeLibrary.load(Native Method)
            at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
            at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1668)
            at java.lang.Runtime.loadLibrary0(Runtime.java:822)
            at java.lang.System.loadLibrary(System.java:993)
            at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.awt.Toolkit.loadLibraries(Toolkit.java:1509)
            at java.awt.Toolkit.<clinit>(Toolkit.java:1530)
            at java.awt.Color.<clinit>(Color.java:250)
            at tablereport.processRequest(tablereport.java:55)
            at tablereport.doGet(tablereport.java:130)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
            at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
            at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
            at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
            at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
            at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
            at java.lang.Thread.run(Thread.java:595)After some research and verifying that libawt.so physically exists I read somewhere that whenever java is installed no a linux box without x (in my case it's a remote vps) java omits certain graphics related libraries like AWT (naturally).
    I also read that you can run java headless to avoid the dependencies to X. Now is there a way to run tomcat (or add variables to tomcat's startup.sh) to avoid having these dependencies?
    Thanks for your help,
    William

    [Googling the exception|http://www.google.com/search?q=java.lang.UnsatisfiedLinkError+at+java.awt.Color.%3Cclinit%3E%28Color.java%3A250%29+tomcat] learns me it's a bug in the mentioned Tomcat + JDK combo.
    Upgrade to the latest if possible.

  • Exception occurred during event dispatching: java.lang.UnsatisfiedLinkError

    Hi,
    Greetings. I am watching the following error in linux. I greatly appreciate your help.
    Thanks
    Rajkumar
    Exception occurred during event dispatching:
    java.lang.UnsatisfiedLinkError: no test in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
    at java.lang.Runtime.loadLibrary0(Runtime.java:788)
    at java.lang.System.loadLibrary(System.java:834)
    at test.<clinit>(test.java:3)
    at Test.action(Main27.java:926)
    at java.awt.Component.handleEvent(Component.java:5341)
    at Test.handleEvent(Main27.java:1023)
    at java.awt.Window.postEvent(Window.java:1614)
    at java.awt.Component.postEvent(Component.java:3895)
    at java.awt.Component.dispatchEventImpl(Component.java:3631)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:141)
    at java.awt.Dialog$1.run(Dialog.java:542)
    at java.awt.Dialog$3.run(Dialog.java:569)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:567)
    at Main27.first(Main27.java:67)
    at Main27.action(Main27.java:163)
    at java.awt.Component.handleEvent(Component.java:5341)
    at java.awt.Component.postEvent(Component.java:3885)
    at java.awt.Component.postEvent(Component.java:3895)
    at java.awt.Component.postEvent(Component.java:3895)
    at java.awt.Component.dispatchEventImpl(Component.java:3631)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:480)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

    In your test.java (Which must be yours, since all serious classes have capitalised names) you are trying to load a JNI library with
    static {
       System.loadLibrary("test");
      }Somewhere you should have a library file, I think called libtest.so, but the JVM can't find it.
    Find out where it is and put -Djava.library.path=<the directory>
    on the java command.

  • HELP: java.lang.UnsatisfiedLinkError: no ... in java.library.path

    am the beginner of JNI. I write a test program to use C code in JAVA.
    [yxz155@lionxo JAVAaC]$ ls
    AClassWithNativeMethods.java theNativeMethod.c
    [yxz155@lionxo JAVAaC]$ javac AClassWithNativeMethods.java
    [yxz155@lionxo JAVAaC]$ javah -jni AClassWithNativeMethods
    [yxz155@lionxo JAVAaC]$ ls
    AClassWithNativeMethods.class AClassWithNativeMethods.java
    AClassWithNativeMethods.h theNativeMethod.c
    [yxz155@lionxo JAVAaC]$ gcc -c -fPIC -I/usr/global/java/include -I/usr/global/java/include/linux theNativeMethod.c
    [yxz155@lionxo JAVAaC]$ ls
    AClassWithNativeMethods.class AClassWithNativeMethods.java theNativeMethod.o
    AClassWithNativeMethods.h theNativeMethod.c
    [yxz155@lionxo JAVAaC]$ ld -G theNativeMethod.o -o libJCI.so -lm -lc -lpthread
    [yxz155@lionxo JAVAaC]$ ls
    AClassWithNativeMethods.class AClassWithNativeMethods.java theNativeMethod.c
    AClassWithNativeMethods.h libJCI.so theNativeMethod.o
    [yxz155@lionxo JAVAaC]$ java AClassWithNativeMethods
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no CJI in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at AClassWithNativeMethods.<clinit>(AClassWithNativeMethods.java:9)
    [yxz155@lionxo JAVAaC]$
    The codes are as follows, I tried setProperty() as in java program, but it did not work. I also tried set LD_LIBRARY_PATH and it did not work either.
    //AClassWithNativeMethods.java
    import java.io.File;
    import java.lang.System;
    public class AClassWithNativeMethods{
    public native void theNativeMethod();
    static {
    //System.setProperty("java.library.path",System.getProperty("java.library.path")+ File.pathSeparator+"/home2/yxz155/JAVAaC");
    //System.out.println(System.getProperty("java.library.path"));
    System.loadLibrary("CJI");
    public static void main(String[] args){
    AClassWithNativeMethods test = new AClassWithNativeMethods ();
    test.theNativeMethod();
    // theNativeMethod.c
    #include <stdio.h>
    #include "AClassWithNativeMethods.h"
    JNIEXPORT void JNICALL Java_AClassWithNativeMethods_theNativeMethod
    (JNIEnv *env, jobject obj){
    printf("Hello~~~~");
    //AClassWithNativeMethods.h
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include <jni.h>
    /* Header for class AClassWithNativeMethods */
    #ifndef IncludedAClassWithNativeMethods
    #define IncludedAClassWithNativeMethods
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class: AClassWithNativeMethods
    * Method: theNativeMethod
    * Signature: ()V
    JNIEXPORT void JNICALL Java_AClassWithNativeMethods_theNativeMethod
    (JNIEnv *, jobject);
    #ifdef __cplusplus
    #endif
    #endif

    Hi all,
    I am getting the error in jdk 5:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: getObjectSize0
    at sun.instrument.InstrumentationImpl.getObjectSize0(Native Method)
    at sun.instrument.InstrumentationImpl.getObjectSize(InstrumentationImpl.java:97)
    at ObjectSizeEstimator.main(ObjectSizeEstimator.java:25)
    while executing the following code:
    public class ObjectSizeEstimator {
    static {
    System.loadLibrary("instrument");
    public static void main(String[] args) throws Exception {
    Constructor ctor = InstrumentationImpl.class
    .getDeclaredConstructor(new Class[] { long.class, boolean.class });
    ctor.setAccessible(true);
    Instrumentation inst = (Instrumentation) ctor.newInstance(new Object[] {
    Long.valueOf(0L), Boolean.TRUE });
    System.out.println(inst.getObjectSize(new Object()));
    "getObjectSize0" is the native method. All of my classpath setting is in place. Can Anybody tell me why i am getting this error.
    Thanks in advance....:)

  • Exception "java.lang.UnsatisfiedLinkError" with a library

    Hi,
    I'm using Avetana Bluetooth with linux. I have no compilation errors but I get this error when executing:
         Could not find own library libavetanaBT.so. Will try from ld.library.path
    Exception in thread "Thread-0" java.lang.UnsatisfiedLinkError: no libavetanaBT.so in java.library.path
    The library exists and it is in the '/sources/build' folder, and I export the path to the library in $LD_LIBRARY_PATH
    What can I do?
    Thanks

    Re: ./runInstaller problem

  • Java.lang.UnsatisfiedLinkError: t2cGetCharSet Error in ODI

    Hi Experts,
    I am trying to create Oracle Data Server .
    The source is Oracle E-Business Suite R12.
    When i click on test connection i get an error message "java.lang.UnsatisfiedLinkError: t2cGetCharSet".
    Any idea why such error.
    Thanks and Regards,
    Andy

    Do you have something like
    System.loadLibrary("System");in your source code?
    You are trying to load a native library which should be called System.dll (on Windows) or System.so (on Linux and other Unix variants). The native library is not in the PATH, so Java can't find it.
    If you have System.dll in directory C:\MyJunk (for example), try running your program like this:
    java -Djava.library.path=C:\MyJunk MyClassName

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

    I am using IE5.5 on Windows 98SE, and every time I try to run an applet, I get the error "java.lang.UnsatisfiedLinkError: no msawt in shared library path" I have installed the JDK/JRE, but it has not done anything. I discovered that I was missing msawt.dll from my windows/system folder, but when I got it, it had no effect on the error message. I have gotten the same applets to run on other win98/IE5.5 machines. I read of this same problem in a linux forum somewhere, but nobody had a solution. What should I do? Thanks.

    Well, as tacky as it is to reply with the solution to my own problem, I found that installing a newer version of Microsoft's Java Virtual Machine, free from Microsoft's site, helped elminate that error. Perhaps this will help someone else.

Maybe you are looking for

  • Creative zen micro working with itunes.

    for i long time i have been using the musiclibrary organisation tool provided by creative... and i have been satisfied... but last week i discovered itunes... for all i know itunes was originally for apple products only (such as the ipod)... but i re

  • How to copy and  paste the data directly from the excel to the PDF?

    hi, I have found the same question on the link: How to copy excel sheet to pdf form? But I didnt get my answer through that forum. My requirement is dat I should copy the data from excel sheet and directly paste it to PDF form. When I am trying to co

  • How to create and attach a pdf file to an email

    I am looking into the feasibility of using email system to send indentical notices along with data attachments to hundreds of companies simultaneously. Each data attachment is corresponding to its own company email. Please advise how can I create thi

  • 2003 Mac Mini Software question..

    Greetings! I have a 2003 mac mini and I am confused about the software..I am up to date as far as I know with 10.6.8, but is there an OS I should download/order since I can't get the new mountain lion? (it says that it isn't compat. with my mini) Bas

  • Select records from MS Access tables using multiple conditions

    Hi, I am trying to build s select list of team names for a sporting club website. The select list should include teams if the currently logged in user is a coach, team manager, assistant coach, player or a parent of a player. When I have only one gro