使用Java code使用.NET的DLL的方法 [英] Access .NET dll's method using Java code
本文介绍了使用Java code使用.NET的DLL的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个DLL即 product.dll
使用.NET创建的。我如何可以访问使用Java code DLL的构造函数或方法。
是否有可能不使用JNI来访问?
I have a dll namely product.dll
created using .NET. How can I access that dll's constructor or method using Java code.
Is it possible to access without using JNI?
推荐答案
您可以看看 jni4net 这使得之间的互操作性二。 IKVM.NET 是另一种选择。然而,另一种选择是揭露你在.NET库作为SOAP的Web服务,这是可互操作的,并且可以从Java客户端消耗的功能。
You may take a look at jni4net which allows interoperability between the two. IKVM.NET is another alternative. Yet another option is to expose the functionality you have in the .NET library as a SOAP web service which is interoperable and could be consumed from a JAVA client.
这篇关于使用Java code使用.NET的DLL的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文