AIX

AIX

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


#Power
#Power
 View Only
  • 1.  IBM - AIX - JNI Error - UnsatisfiedLinkError

    Posted Tue January 11, 2011 06:42 AM

    Originally posted by: LijuThomas


    Hi,

    We have a sample application which is deployed in AIX 6.1 which invokes a method from a Java class using JNI. We are getting a error called:

    Exception in thread "main" java.lang.UnsatisfiedLinkError: net (A file or directory in the path name does not exist.)
    at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1013)
    at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:977)
    at java.lang.System.loadLibrary(System.java:470)
    at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:69)
    at java.security.AccessController.doPrivileged(AccessController.java:202)
    at java.net.InetAddress.<clinit>(InetAddress.java:217)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
    at javax.crypto.b.e(Unknown Source)
    at javax.crypto.b.a(Unknown Source)
    at javax.crypto.b.access$500(Unknown Source)
    at javax.crypto.b$0.run(Unknown Source)
    at java.security.AccessController.doPrivileged(AccessController.java:251)
    at javax.crypto.b.<clinit>(Unknown Source)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
    at javax.crypto.SecretKeyFactory.a(Unknown Source)
    at javax.crypto.SecretKeyFactory.<init>(Unknown Source)
    at javax.crypto.SecretKeyFactory.getInstance(Unknown Source)
    at SSOPassword.decrypt(SSOPassword.java:51)

    We are able to call the java file, even we are able to create JVM, however we are getting error in following code:

    SecretKeyFactory lsecretkeyfactory = SecretKeyFactory.getInstance("DESede");

    Please note we have tried following things:

    1. Setting classpaths (java etc)
    2. Setting libnet.so in the classpath
    #AIX-Forum


  • 2.  Re: IBM - AIX - JNI Error - UnsatisfiedLinkError

    Posted Thu January 13, 2011 12:51 AM

    Originally posted by: LijuThomas


    Can anyone help in this? Please this is very urgent
    #AIX-Forum


  • 3.  Re: IBM - AIX - JNI Error - UnsatisfiedLinkError

    Posted Thu April 14, 2011 12:49 PM

    Originally posted by: gpratte


    Did you find out what the problem is? I'm having the same problem.

    thanks
    #AIX-Forum