AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  UnsatisfiedLinkError

    Posted Thu November 06, 2008 01:58 PM

    Originally posted by: SystemAdmin


    I am in the process of moving a JNI call over from Windows to AIX and am currently stuck on an UnstatifiedLinkError. I was able to compile the our shared library (code1_jni.a) and the java code will successfully load the library. However, the call that is failing is to a native method within the shared library. The error shows that the signature of the method is being seen but I am still getting the UnsatisfiedLinkError.

    Exception in thread "main" java.lang.UnsatisfiedLinkError:
    com/discovertax/etl/addressmatcher/Code1MatchedAddress.code1MatchAddress(Lja
    va/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava
    /lang/String;

    The shared library (code1_jni.a) and the linked object (com_discovertax_etl_addressmatcher_Code1MatchedAddress.o) are both in the same directory which does exist in the LIBPATH.

    Since the error shows that it can see the signature of the method I am trying to call does anyone know why I might get the UnsatisfiedLinkError.

    Thanks in advance and please let me know if any additional info will help.
    #AIX-Forum


  • 2.  Re: UnsatisfiedLinkError

    Posted Fri November 07, 2008 12:19 PM

    Originally posted by: SystemAdmin


    Not sure why but Void Main comes to mind.
    #AIX-Forum


  • 3.  Re: UnsatisfiedLinkError

    Posted Fri November 07, 2008 12:57 PM

    Originally posted by: SystemAdmin


    What are you thinking might be the issue with "Void Main"?
    #AIX-Forum


  • 4.  Re: UnsatisfiedLinkError

    Posted Fri November 07, 2008 01:14 PM

    Originally posted by: SystemAdmin


    Its been about 8 years since I ported code from windows to unix, so this is coming from subliminal memory. Might be that putting a litteral void infront of the funtion/class call in the code may fix your problem.
    #AIX-Forum


  • 5.  Re: UnsatisfiedLinkError

    Posted Fri November 07, 2008 01:36 PM

    Originally posted by: SystemAdmin


    Did find a decent thread. Could be a few different things.

    http://mindprod.com/jgloss/runerrormessages.html#UNSATISFIEDLINKERROR
    #AIX-Forum