简体   繁体   中英

Automatically Generate java wrapper classes from .Net DLL

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 (ie .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 (ie 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM