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?

[323 byte] By [M.Ali.Amina] at [2007-10-3 6:17:49]
# 1

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)

mdentya at 2007-7-15 1:02:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
Thanks for reply. But at this time it is hard to write a wrapper class to call another dll.Is there any other api that can help me calling a dll. Right now i am going through Jawin. Please do tell me if there is any other such api that can help me.
M.Ali.Amina at 2007-7-15 1:02:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 3
In my previous post I said that JNative is done for that.Download it and test it.--Marc ( http://jnative.sf.net)
mdentya at 2007-7-15 1:02:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 4
there is no download archive there.
M.Ali.Amina at 2007-7-15 1:02:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 5
Huuu ?There is 2 links leading towards Sourceforge download page !--Marc ( http://marcsudoku.sf.net)
mdentya at 2007-7-15 1:02:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...