I have .Net DLL, I need to interact with DLL from java . How to automatically generate java wrapper classes ? Is jni platform specific ? Is there any specific tool which will automatically generate java classes parsing .Net DLL.
Thanks in advance.
I have .Net DLL, I need to interact with DLL from java . How to automatically generate java wrapper classes ? Is jni platform specific ? Is there any specific tool which will automatically generate java classes parsing .Net DLL.
Thanks in advance.
To my knowledge there is no way to interface with managed code (i.e. .NET) when using the Java Native Interface (JNI) tools packed with the Java Development Kit (JDK).
JNI is not platform specific, but you need unmanaged/native code (i.e. C++, I have not tried C yet) with a specific syntax to access the functions from Java.
When you are interested in working with JNI you should consider reading this specification from Oracle.