Here is my problem. We have a some C++ code with which processes communicate (message eyc.) with a Java Agent. Whenever these libraries are called by JNI code, the LoadLibrary fails.(with java.lang.Unsatisfiedlinkerror). I suspect the problem is how the C++ code is compiled. Any help will be greatly appreciated.
posted 15 years ago
Do you have your dll file in your PATH variable (for windows)? You are getting this error when java program can't find the .dll file. You should also check methods names. Did you use javah.exe to make .h file for your C++ program?