I am having problem with JNI. I am not new to JNI and used it quite
extensively before. The only difference is that now I defined native
function in the nested class. When I run the software I get
'UnsatisfiedLinkError' when I call this function. At the same time if
I put this function back into the outer class everything is fine.
Do you have any idea why is that? Just in case I use Linux Fedora Core
4, Sun JDK 1.5, update 7.
Thanks
Gordon Beaton - 27 Apr 2007 13:20 GMT
> I am having problem with JNI. I am not new to JNI and used it quite
> extensively before. The only difference is that now I defined native
> function in the nested class. When I run the software I get
> 'UnsatisfiedLinkError' when I call this function. At the same time
> if I put this function back into the outer class everything is fine.
Did you run javah using the fully qualified name of the nested class,
and then update the source using the new generated function names? Do
you call System.loadLibrary() from the nested class?
/gordon
--