2016-04-24 90 views
1

正如主题所说,这可能吗?我知道jni4net,但它在窗户上。如何在mono/linux上从Java调用.Net dll(函数)

继承人的错误的摘录,我得到:

Java HotSpot(TM) 64-Bit Server VM warning: You have loaded library /tmp/mydll.dll which might have disabled stack guard. The VM will try to fix the stack guard now. 
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'. 
Native code library failed to load. 

回答

2

您可能希望创建C作为从Java代码中调用一个函数,并在返回调用你的C#功能。

看看C到C#桥梁的here

+0

你说得很对。我只是在想这个! – Eminem

0

JNBridgePro支持您的方案。它支持在Mono上运行.NET端,因此.NET端可以在Linux上运行。查看JNBridge网站获取更多信息。

披露:我与JNBridge。