Using DLL functions inside Java application
843829Dec 30 2004 — edited May 18 2005Hi,
i'm searching a solution to simply call some functions included in a DLL from a java class. After some seraches i've found the JNI solution. The solution seems to be simle when the developer creates its own DLL beacause a specific JNI header provided by javah is needed during the DLL compilation.
But the problem is that the DLL is provided alone (without sources) and can't be modified (re-compiled whit JNI header). So, that means that i have to develop my own DLL inteface including JNI headers and used to make the middle interface between my java class and the DLL.
Java Program <- > DLL interface + JNI headers <-> native DLL
Is that right ? Does it exist another simple way to do such things ?
PS:
Sorry for my english ;-)