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