Calling a generic DLL?
Hi,
I want to call a generic dll from JAVA. The dll is provided by thirdparty. I am able to load it using "System.load("dllName.dll");" but i am now confused how can i call the methods. Since it is not made by me using JNI so there is not method with "native" keyword.
Is there any way to use its method?
Hi,
You need a "wrapper" DLL to call your 3rd party DLL, since java need special erazures. (Have an overview at http://en.wikipedia.org/wiki/JNI).
So, yes you need to compile your "wrapper" DLL or use a precompiled generic one.
You can test JNative, it's a free generic one, numerous other are commercial.
--Marc (http://jnative.sf.net)