Java.lang.UnsatisfiedLinkError: CallExe.call(Ljava/lang/String;)V

hi,
I am new in JNI,
I created call.dll using MS Visual C++.
I want to call JNI call method in Call class.
I am working on NetBean, If I called same method using jCreater it works but through netBean it throws following error:
java.rmi.ServerError: Error occurred in server thread; nested exception is:
java.lang.UnsatisfiedLinkError: sunil.jdata.source.CallExe.call(Ljava/lang/String;)V
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:333)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
Please give me the solution.

Please give me the solution.Simple - environment problem. Obviously.
What makes you think this has anything to do with JNI?

Similar Messages

  • Error:java.lang.Double:method parseDouble(Ljava/lang/String;)D not found.

    Hi ,
    oracle apps version : 11.5.10.2 and database version 11.2.0.2.
    OS version Solaris Sparc 64 Bit.
    We were performing a cloing activity on a new server and now while opening forms we are getting the following error :
    error:java.lang.Double:method parseDouble(Ljava/lang/String;)D not found.Please suggest what has to be done.
    Regards
    Kk

    Hi ,
    D:\Documents and Settings\800045916>java -version
    java version "1.6.0_29"
    Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
    Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode, sharing)We have been struggling with the Solaris server for this. Is something needed from there also or just need to have the latest JRE in the windows client machine.
    Regards
    Kk

  • Java.lang.NoSuchMethodError: java.lang.Float: method parseFloat(Ljava/lang/

    java.lang.NoSuchMethodError: java.lang.Float: method parseFloat(Ljava/lang/String;)F not found
    WHAT WOULD MAKE THIS HAPPEN. THIS SEEMS TO WORK IN JDK1.3.1 BUT NOT IN BLACKDOWN 1.1.3_V3
    THIS IS MY CODE:
    try{
    DecimalFormat dfp = new DecimalFormat( "0.00" );
    if(!Price.equals("")) {
    float MyFloat = Float.parseFloat(Price);
    Price = dfp.format(MyFloat);
    }catch(NumberFormatException nfe){
    PriceValid = 1;

    This error says:
    - There is no method called "parseFloat" that receives a String as parameter in class java.lang.Float.
    Look the method "parseFloat" at the class java.lang.Float!!

  • Java.lang.UnsatisfiedLinkError: when called from a jar file

    I have a class that calls a custom dll file. If I dont package the class files and set my system PATH to the location of the DLL then the VM is able to find the dll and load it successfully.
    However, when I package the class files into a jar file, I get "java.lang.UnsatisfiedLinkError: NetworkAdapters" eventhough the system PATH is set to the correct location.
    I have also tried to packaging the dll with the class files but this has not made any difference.
    Library is called from Java as follows:
    static {
    System.loadLibrary("NetworkAdapters");
    When packaged the classes files exist in the following sub directories com\instem\hci\adapters
    Any help appreciated.

    Is it an executable Jar file?
    The the DLL needs to sit in the same folders as the Jar itself.
    (works for us).

  • Java.lang.UnsatisfiedLinkError when calling native function

    I got exception as
    java.lang.UnsatisfiedLinkError: no rvjs11 in java.library.path
    Do I need any addtional setting?

    You need to make sure that the native library is in your "dynamic
    library search path". You typically set this using an environment
    variable (e.g., PATH on Windows, LD_LIBRARY_PATH on most Unix variants
    except HP-UX and AIX, SHLIB_PATH on HP-UX, or LIBPATH on AIX).
    Hope this helps,
    Robert
    Eric Shen wrote:
    I got exception as
    java.lang.UnsatisfiedLinkError: no rvjs11 in java.library.path
    Do I need any addtional setting?

  • Java.lang.Throwable: method getCause()Ljava/lang/Throwable; not found in web-App

    Thanks for the answer, the problem is that for the first times that launch the application works in correct way in fact I see opened mine report to video, then stops to work and generates that error.

    This error says:
    - There is no method called "parseFloat" that receives a String as parameter in class java.lang.Float.
    Look the method "parseFloat" at the class java.lang.Float!!

  • 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

  • Ljava/lang/String Error

    Hi, all
    I am developing a simple "Hello World" example in Java RMI. But it turns out with this error:
    Exception in thread "main" java.lang.AbstractMethodError: Server_Stub.getMessage()Ljava/lang/String;
    at Client.main(Client.java:105)
    Any Help?
    Thanks in Advanced,
    Sohming

    Hi,
    check whether the java path given is correct in the setJavaEn bat file.
    I also got the same abstract lang error cos the java path which was given in the setJavaEn file was wrong.
    I corrected the path and started the rmi again and the error disappeared.
    Thanks,
    Manju

  • Java App from SAP Portal - SSO2Ticket call - java.lang.UnsatisfiedLinkError

    Hi
    I am facing a problem in trying to call a java application from SAP portal.
    *Cause:*
    This java application is built on Unix (AIX) server. Previously it was running fine. Then there is a Tech Upgrade on SAP side in our company. After that I have been told to test whether the Java Application is getting called correctly or not.
    Error:
    I am getting the below error
    java.lang.UnsatisfiedLinkError: com/mysap/sso/SSO2Ticket
    Also when I am checking the log entry all I am able to see, there is error in SSO2Ticket.verify() method and the error is
    Error during initialization of SSO2TICKET;       com/mysap/sso/SSO2Ticket.init(Ljava/lang/String;);
    Effort:
    I checked all possible aspects what ever came to my mind and found in this forum so far.
    1. com/mysap/sso this package is there.
    2. SSO2TICKET class defined in that package
    3. The JAVA_HOME and CLASSPATH are defined correctly ( I guess so)
    4. Even the "libsapsecu.o" file is present
    I am not sure why still this error is coming. Am I missing something here? Or what ever I have mentioned above 1-4 I am not getting them correctly.
    I am new to this kind of native call technology. Please help me on this.
    My concerns are :
    1. Is the package com/mysap/sso should be in a specific location, which I am missing.
    2. Do I need to revisit my CLASSPATH set up for JAVA?
    3. Is any change required to the libsapsecu.o file?
    4. Most of all what on earth can I do to overcome this?
    5. After Tech upgrade do they need to do some sort of thing to make the Java native call available, which they might have missed? Does any one aware of any such thing?
    Please let me know the answer asap.
    Thanks
    Santanu
    Code:
    I am also attaching the code snippet from JAVA
    public class SSO2Ticket {
    static {          
              if (System.getProperty("os.name").startsWith("Win")) {
                   SECLIBRARY = "sapsecu.dll";
              } else {
                   SECLIBRARY = "libsapsecu.o";
              try {
                   logger.debug("java.library.path - "+System.getProperty("java.library.path"));
                   System.loadLibrary(SSO2TICKETLIBRARY);
                    logger.debug("SAPSSOEXT loaded.");
              } catch (Throwable e) {
                   System.out.println("Error during initialization of SSO2TICKET:\n"+ e.getMessage());
                   logger.error("Error during initialization of SSO2TICKET:\n"+ e.getMessage());
    public static synchronized String[] verify(String ticket, String pathToPSE) throws LogonTicketException
              //System.out.println("Ticket: "+ticket);
              //System.out.println("PSE: "+pathToPSE);
                logger.debug("Ticket: "+ticket);
                logger.debug("PSE: "+pathToPSE);
              String[] ticketContent = null;
              logger.debug("The value for initialized is -
    >"+initialized);
                   try {
                        init(SECLIBRARY);
                   } catch (Throwable e) {
                          logger.error("Error during initialization of SSO2TICKET:\n"+ e.getMessage());

    Hi,
    have you searched on SCN? There are some threads with same problem such as [this one|/message/9270216#9270216 [original link is broken];. There is more threads. They may help you to solve your issue.
    Cheers

  • Java.lang.NoSuchMethodError: com.sun.xml.ws.util.JAXWSUtils.getEncodedURL(Ljava/lang/String;)Ljava/net/URL;

    java.lang.NoSuchMethodError: com.sun.xml.ws.util.JAXWSUtils.getEncodedURL(Ljava/lang/String;)Ljava/net/URL.
    Gettin exception while trying to execute clientGen from build.xml from eclipse using Oracle weblogic 10.3 server.
    I tried with both jars jaxws-rt-2.1.4 and jaxws-rt-2.1.3
    Regards,
    Manish

    along with wlfullclient.jar please add wseeclient.jar
    Copy the file WL_HOME/server/lib/wseeclient.zip from the computer hosting WebLogic Server to the client computer( where WL_HOME refers to the WebLogic Server installation directory, such as /Oracle/Middleware/wlserver_12.1)
    Unzip the wseeclient.zip file into the appropriate directory. For example, you might unzip the file into a directory that contains other classes used by your client application.
    Add the wseeclient.jar file (unzipped from the wseeclient.zip file) to your CLASSPATH.
    Note:
    Also be sure that your CLASSPATH includes the JAR file that contains the Ant classes (ant.jar). This JAR file is typically located in the lib directory of the Ant distribution.
    http://docs.oracle.com/cd/E24329_01/web.1211/e24967/client.htm#WSRPC214
    Regards,
    Sunil P

  • Data Quality vendor-specific error: An error occurred when calling function 'sdq_init_connector ()' in connector ": "(-8) Exception!." Detailed error message: Exception thrown by Java: java.lang.UnsatisfiedLinkError: nio (Not found in com.ibm.oti.vm.boots

    When attempting to create a new Account in siebel integrated with OEDQ the following error occurs.
    ERROR
    Data Quality vendor-specific error: An error occurred when calling function 'sdq_init_connector ()' in connector ": "(-8) Exception!." Detailed error message: Exception thrown by Java: java.lang.UnsatisfiedLinkError: nio (Not found in com.ibm.oti.vm.bootstrap.library.path)(SBL-APS-00118)
    STEPS
    The issue can be reproduced at will with the following steps:
    1) from EDQ director we have imported the EDQ_CDS,EDQ-REFERENCE DATA & EDQ_HISTORICAl DATA packages sucessfully.
    2) Created dnd.param file in SIebel server SDQCOnnector folder.
    3) Copied the libdnd.so file to siebsrvr lib directory(32 bit)
    3) In dnd.param file we have mentioned the javalib file and instllation directory path(<Siebsrvr roo>/dnd/install)
    4) Unzipped the EDQ-Siebel Connector files in dnd/install folder
    5) Copied the dnd.properties file in dnd/install directory and modified it accordingly to point to installed EDQ instance.
    6) Configured the Siebel components for EDQ integration.
    7) Realtime EDQ jobs are running.
    8) Create a new Account
    Env details are
    On : 8.2.2.14 [IP2014] version, Client Functionality
    EDQ 11.1.1.7.4
    IBM JDK 1.7 32 bit
    Using Open UI
    Any Champ have faced this issue and overcame it please let me know the resolution steps. your help is
    Regards
    Monoj Dey
    9007554589

    Hi Monoj,
    A few questions:
    - What OS is Siebel running on?
    - What version of the Siebel connector are you using?
    - Which libdnd.so file are you using?
    - What's the contents of your dnd.parms file?
    thanks,
    Nick

  • FaultString: java.lang.UnsatisfiedLinkError:

    Hi,
    when i call my timesten web service application deployed in
    websphere using a JSP , Im getting following error
    faultString: java.lang.UnsatisfiedLinkError:
    this is my web service calling the timesten application dll
    TxnDetail.dll
    package demo;
    public class Sample6 {
         public native int CardVerifyTxn(String custname,int c_no,int cardno,int d_id ,String txn_type,int txn_amt,String card_validity_date);
         public int VerifyTxn(String custname,int c_no,int cardno,int d_id,String txn_type,int txn_amt,String card_validity_date)
              System.out.println("In CardVerifyTxn");          
              System.loadLibrary("TxnDetail");
              Sample6 sample = new Sample6();          
              int status = sample.CardVerifyTxn(custname,c_no,cardno,d_id,txn_type,txn_amt,card_validity_date);
              return status;
    how sholud i set path in websphere ? .i think the problem is the server doesnt find the dll in path right? , sorry ( it is not relevant to timesten ) .
    I can access the dll using a normal java client .but when i implemented it as web service and accessed from jsp I got the above unsatisfied link eror.
    can anybody suggest a solution
    thnking in advance..
    sanal

    one more thing
    the output of java.library.path contains the path where my
    'dll and dependant dll' s present
    still it's not picking the dll's
    console error
    java.lang.UnsatisfiedLinkError: demo/Sample6.CardVerifyTxn(Ljava/lang/String;IIILjava/lang/String;ILjava/lang/String;)I
    the signature of the method in C dll is
    JNIEXPORT jint JNICALL Java_Sample6_CardVerifyTxn(JNIEnv *env , jobject obj ,   jstring cust_name , jint c_no , jint cardno , jint d_id , jstring xntype , jint txn_amt , jstring cardvaliditydate)
    thnkx n regards
    sanal

  • Exception in thread "main" java.lang.UnsatisfiedLinkError

    Exception in thread "main" java.lang.UnsatisfiedLinkError: no LabIfxEC in java.library.path
    (LabIfxEC was compiled by ESQL/C of INFORMIX)
    My Java code as:
    public class LabEC
         public int labnum;
         public LabEC()
              labnum = 0;
         public synchronized native void invocation();
         static
                   System.loadLibrary("LabIfxEC");
         public static void main(String[] args)
              LabEC lec = new LabEC();
              lec.invocation();
              System.out.println("After Invoke : labnum = "+lec.labnum+"\n");
    My .h code as:
    /* DO NOT EDIT THIS FILE - it is machine generated */
    #include "/opt/hobo/java1.2/include/jni.h"
    /* Header for class LabEC */
    #ifndef IncludedLabEC
    #define IncludedLabEC
    #ifdef __cplusplus
    extern "C" {
    #endif
    * Class: LabEC
    * Method: invocation
    * Signature: ()V
    jfieldID jf;
    jclass jc;
    jobject jo;
    jint newnum;
    JNIEXPORT void JNICALL Java_LabEC_invocation
    (JNIEnv *env, jobject this);
    void TransDataToJava (JNIEnv *env, jobject this);
    int CreatConnection ();
    int CloseConnection ();
    #ifdef __cplusplus
    #endif
    #endif
    My ESQL/C code as:
    #include "LabEC.h"
    #include <stdio.h>
    JNIEXPORT void JNICALL Java_LabEC_invocation( JNIEnv *env,jobject this)
         jc = (*env)->GetObjectClass(env,this);
         jf = (*env)->GetFieldID(env,jc,"labnum","I");
         if( CreatConnection()||GetNumFromDB()||CloseConnection() )
              fprintf(stderr,"ERROR IN CONNECTING DB");
         }else{
              TransDataToJava(env,this);
    void TransDataToJava (JNIEnv *env,jobject this)
         (*env)->SetIntField(env,this,jf,newnum);
    int CreatConnection()
         EXEC SQL BEGIN DECLARE SECTION;
         char userid[] = "informix";
         char password[] = "informix";
         char dbname[] = "dbdycm_new";
         EXEC SQL END DECLARE SECTION;
         EXEC SQL CONNECT TO:dbname USER: userid using: password;
         if ( SQLCODE < 0 ) return -1;
         return 0;
    int GetNumFromDB()
         EXEC SQL BEGIN DECLARE SECTION;
         long numofrow;
         EXEC SQL END DECLARE SECTION;
         EXEC SQL SELECT count(*) into: numofrow from ttrlineinfo;
         if ( SQLCODE != 0 ) return -1;
         newnum = numofrow;
         return 0;
    int CloseConnection ()
         EXEC SQL DISCONNECT CURRENT;
         return 0;
    My makefile code as:
    INCLUDE_IX=-I /opt/informix/incl/esql
    INCLUDE=-I /opt/nmc/include -I /opt/hobo/java1.2/include -I /opt/hobo/java1.2/include/solaris
    FLAG=-G
    libLabIfxEC.so:LabEC.c LabEC.h
         cc $(FLAG) $(INCLUDE) $(INCLUDE_IX) -solibLabIfxEC.so LabEC.c
    LabEC.c:LabEC.ec LabEC.h
         esql -e LabEC.ec include=/opt/nmc/include:/opt/hobo/java1.2/include:/opt/hobo/java1.2/include/solaris
    The Exception as:
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no LabIfxEC in java.library.path
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.<init>(Throwable.java:94)
    at java.lang.Error.<init>(Error.java:50)
    at java.lang.LinkageError.<init>(LinkageError.java:43)
    at java.lang.UnsatisfiedLinkError.<init>(UnsatisfiedLinkError.java:42)
    at java.lang.ClassLoader.loadLibrary(Compiled Code)
    at java.lang.Runtime.loadLibrary0(Runtime.java:471)
    at java.lang.System.loadLibrary(System.java:745)
    at <Unloaded Method>
    I think my LD_LIBRARY_PATH setting is correct. I have been code a pure c library(without ESQL/C code),and it is runing well with Java.
    Please tell me why, thanks very much!
    Yours Alec

    You can verify the settings of the path to your libraries with
    System.out.println(System.getProperty("java.library.path"));before you call System.loadLibrary(), so you know if it is correct.
    I also found this information (for Solaris):
    The shared library file name requires a "lib" prefix and a ".so" extension. Do not include the "lib" prefix or the ".so" extension for the argument that you pass to the System.loadLibrary method.
    I don't know if that helps you solving your problem.

  • FindClass() throws java.lang.UnsatisfiedLinkError exception

    Hi All,
    I am using a JNI to make my C program to communicate with the GUI developed in Java Swings. In my C program I have used FindClass() method to find the java class. While exececuting my C program, I got the following exception,
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/jre1.5.0_04/lib/i386/libawt.so: /usr/java/j2sdk1.4.2_08/jre/lib/i386/libmlib_image.so: version `VER_1.1' not found (required by /usr/java/jre1.5.0_04/lib/i386/libawt.so)
    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)
    I have ensured that the libawt.so and ibmlib_image.so paths are set in LD_LIBRARY_PATH. Inspite of that I am not able to access the java class because of the above mentioned exception. Please help me out in this.
    For your reference, I am attaching the code with this,
    #include <jni.h>
    int main()
         JavaVMOption options[2];
         JNIEnv *env;
         JavaVM *jvm;
         JavaVMInitArgs vm_args;
         long status;
         jclass cls;
         jobject obj;
         jmethodID mid;
         jstring jstr;
         char str[25];
           options[0].optionString =        "-Djava.class.path=/home/maniyan/work/Dhruv_proj/vers/v5";
         options[1].optionString = "-verbose:jni";
         memset(&vm_args, 0, sizeof(vm_args));
            vm_args.version = JNI_VERSION_1_4;
         vm_args.nOptions = 1;
         vm_args.options = options;
         vm_args.ignoreUnrecognized = 1;
         status = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
         printf("status %d\n",status);
         if (status != JNI_ERR)
              printf("Exception %d\n",(*env)->ExceptionCheck(env));
              cls = (*env)->FindClass(env, "frame_main_v1");
              printf("Exception %d\n",(*env)->ExceptionCheck(env));
              if ((*env)->ExceptionCheck(env)) {
              (*env)->ExceptionDescribe(env);
              (*env)->ExceptionClear(env);
         if(cls !=0)
                 //printf("am here\n");
              mid = (*env)->GetStaticMethodID(env, cls, "display_message", "(Ljava/lang/String;)V");
              printf("Method %d\n",mid);
              if(mid !=0)
              {      strcpy(str,"Hello world");
                    (*env)->CallStaticCharMethod(env, cls, mid, (*env)->NewStringUTF(env, str));
         (*jvm)->DestroyJavaVM(jvm);
         return 0;
    else {
              printf("some error\n");
              return -1;
    Thanks in adv,
    Cool Dude

    this is like a classpath issue, but for a native library
    basically you need to include the library file in your path info to the JVM

  • Java.lang.UnsatisfiedLinkError: DBDisconnect

    Hi Guys,
    I tried using the Connection pool APIs from db2jcc.jar for DB2 UDB v8.1.
    While i try to execute the following code i got the exception
    java.lang.UnsatisfiedLinkError: DBDisconnect.
    Please help me to find the problem, there is no .dll to be loaded in this regard as for as i concern.
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.sql.DatabaseMetaData;
    import javax.sql.ConnectionEventListener;
    import javax.sql.PooledConnection;
    import javax.sql.ConnectionEvent;
    import com.ibm.db2.jcc.DB2ConnectionPoolDataSource;
    public class DB2Pooling implements ConnectionEventListener {
    private static final String DB_NAME = "SAMPLE";
    private static final String DB_SERVER = "db2admin";
    private static final String DB_USER = "administrator";
    private static final String DB_PASSWORD = "Welcome123";
    public static void main(String[] args) throws SQLException {
         new DB2Pooling().test();
    public void test() throws SQLException {
         System.out.println("1");
         DB2ConnectionPoolDataSource db2ConnectionPoolDataSource = new DB2ConnectionPoolDataSource();
         System.out.println("2");
         db2ConnectionPoolDataSource.setDatabaseName(DB_NAME);
         System.out.println("3");
         db2ConnectionPoolDataSource.setServerName(DB_SERVER);
         System.out.println("4");
         PooledConnection pc = db2ConnectionPoolDataSource.getPooledConnection(DB_USER,DB_PASSWORD);     System.out.println("5");
         pc.addConnectionEventListener(this);
         System.out.println("6");
         Connection c = pc.getConnection();
         System.out.println("7");
         DatabaseMetaData metaData = c.getMetaData();
         System.out.println("8");
         System.out.println("Product name: "+ metaData.getDatabaseProductName());
         System.out.println("9");
         System.out.println("Product version: "+ metaData.getDatabaseProductVersion());
         System.out.println("Driver name: "+ metaData.getDriverName());
         System.out.println("Driver version: "+ metaData.getDriverVersion());
         c.close();
         try {
         java.lang.Thread.sleep(5000);
         } catch (InterruptedException ie) {
    public void connectionClosed(ConnectionEvent event) {
    System.out.println("connectionClosed method called.");
    public void connectionErrorOccurred(ConnectionEvent event) {
    System.out.println("connectionErrorOccurred method called.");
    Bolded code is giving problem..
    thanks in advance

    Hi All,
    I have got a solution for the posted problem. actually the missing code is
    db2ConnectionPoolDataSource.setPortNumber(50000);
    eventhough the default port of DB2 server is 50000, we have to mention it explicitly. otherwise it'll try to load the DLL file and if there is any problem loading the dll, it'll give the above said exception.
    thanks to all those who tried to bring the solution.

Maybe you are looking for

  • Installation Issues - Solaris 10

    Here's the situation. I've got a sparc machine that I'm trying to install Solaris 10 on. I've verified the equipment in the approved hardware guide, so I'm not worried about that. I get through the installation process and am asked to reboot without

  • Create outbound delivery thru Idoc

    I am working on a sales return scenario in SAP as below :-- 01. Creating Return sales Order in SAP thru inbound  Idoc ( ORDERS01) 02. Triggering outbound Idoc ( ORDRSP/ORDERS05) from return sales order to our return plant. 03. Customer will send  ret

  • Photoshop CS4 / Windows7 Print Shrinkage

    Okay, this is driving me nuts. I had created a document with Photoshop CS4 on Windows XP Professional to the following: 8-1/2" x 11" at 300dpi, cmyk. It printed fine on the network printer (xerox phaser 7760dx ps) for weeks. Two weeks ago I was upgra

  • Creating A hierarchy on a characteristic.

    Hi, I am in process of creating a hierarchy. the problem I face is with number of hits getting displayed in the input help. I have got an overall of morethan 1500 entries, but the input help is giving me only 500 hits at a time. How can I get the ful

  • Screen does not refresh unless i move the mouse

    I have a samsung screen plugged into my laptop via VGA cable. When I am browsing the screen seems to hang unless I constantly jiggle the mouse. If my mouse is back on the laptop screen, the screen freezes until the mouse comes back over to the other