I checked the library paths: PATH, LIBPATH,
CLASSPATH, and SHLIB_PATH all include my directory. The
path is /usr/lpp/web-data/restricted/ps/cgi-bin and is
included in each path. The C linked module libWsfPrivileges.so
is in that path. Here is the permissions
/usr/lpp/web-data/restricted/ps/cgi-bin : $ ls -l
-rwxr-xr-x 1 T9479MJ OMVSUSER 139264 Mar 27 16:01 libHelloWSF.so
-rwxr-xr-x 1 T9479MJ OMVSUSER 1120 Mar 7 10:04 libHelloWSF.x
-rwxr-xr-x 1 T9479MJ OMVSUSER 81920 Mar 27 16:00
-rwxr-xr-x 1 T9479MJ OMVSUSER 1040 Mar 9 15:10
Any other suggestions?
wff 060001T2ET1 Post
Re: JNI - java.lang.UnsatisfiedLinkError2006-10-12T14:07:37ZThis is the accepted answer. This is the accepted answer.Java programming with JNI tutorial. The tutorial apparently worked with Windows and Solaris. I found it on the deveoperWorks site. I'm interested in having Java talk to C++ programs on USS. I keyed in the code so I could test it on USS. Here's the problem I'm having.
$ c++ -I$JAVA_HOME/include -Wc,"LANG(LONGLONG) DEFINE(_XOPEN_SOURCE_EXTENDED)" -o libSample1.so Sample1.C
$ java Sample1
Exception in thread "main" java.lang.UnsatisfiedLinkError: intMethod
The c++ command compiles and links. I had to name the dll libSample1. You can see the error I got when I ran the Java code. I have the CLASSPATH and the LIBPATH set to the directory containing the class and dll. Everything is in one directory.
I have my own application using JNI running on Windows. I ported that application to USS and get similar errors.