UnsatisfiedLinkError: The specified procedure could not be found

Posted by matt on Stack Overflow See other posts from Stack Overflow or by matt
Published on 2008-10-01T21:28:31Z Indexed on 2010/04/11 13:03 UTC
Read the original article Hit count: 418

Filed under:
|

I'm writing some JNI code in C++ to be called from an applet on Windows XP. I've been able to successfully run the applet and have the JNI library loaded and called, even going so far as having it call functions in other DLLs. I got this working by setting up the PATH system environment variable to include the directory all of my DLLs are in.

So, the problem, is that I add another call that uses a new external DLL, and suddenly when loading the library, an UnsatisfiedLinkError is thrown. The message is: 'The specified procedure could not be found'. This doesn't seem to be a problem with a missing dependent DLL, because I can remove a dependent DLL and get a different message about dependent DLL missing. From what I've been able to find online, it appears that this message means that a native Java function implementation is missing from the DLL, but it's odd that it works fine without this extra bit of code.

Does anyone know what might be causing this? What kinds of things can give a 'The specified procedure could not be found' messages for an UnsatisifedLinkError?

© Stack Overflow or respective owner

Related posts about java

Related posts about jni