Accessing the .NET dll Method Using Java Code

I have a dll, namely product.dll , created using .NET. How can I access this constructor or dll method using Java code.
Can I access without using JNI?

+2
java
source share
2 answers

You can take a look at jni4net , which allows you to interact between them. IKVM.NET is another alternative. Another option is to expose the functionality that you have in the .NET library as a SOAP web service that is compatible and can be used from the JAVA client.

+5
source share

There is a commercial JNBridgePro product that will allow you to easily do this. You can even run DLL.NET in the Java process if you want. (You can also run Java and .NET in separate processes and communicate via sockets.) For more information, see www.jnbridge.com or contact us at the email address on the website. (Yes, I am with JNBridge, but I felt that mentioning the product was appropriate in these circumstances.)

0
source share

All Articles