Loading DLL Library in Java, JNI - UnsatisfiedLinkError

Hi,

I am trying to load a dll file in Java. The dll file was created using the C and Header files using MinGW GNU.
The header file was generated using javah command. And, the C has JNI Export definitions corresponding to the functions definitions in the header file.
When trying to call a function in java, there is an "UnsatisfiedLinkError".
I've tried also doing static linking when generating the DLL file but did not help.

Thanks,
Raja
dolphin_gAsked:
Who is Participating?
 
a_bCommented:
How do you load the lib in java?
0
 
dolphin_gAuthor Commented:
using System.load();

It worked fine with other dll files. But this dll file that I generated using MinGW GNU compiler. It throws the unsatisfiedlink error

Thanks,
Rama
0
All Courses

From novice to tech pro — start learning today.