• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI problem in loadLibrary

 
Rahul Miglani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Roman Hoyenko
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!