如何在mono/linux上从Java调用.Net dll(函数)

如何在mono/linux上从Java调用.Net dll(函数),java,c#,linux,jni4net,Java,C#,Linux,Jni4net,正如主体所说,这可能吗?我知道jni4net,但它在windows上 下面是我得到的错误摘录: 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

正如主体所说,这可能吗?我知道jni4net,但它在windows上

下面是我得到的错误摘录:

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.
Java HotSpot(TM)64位服务器VM警告:您已加载library/tmp/mydll.dll,这可能已禁用堆栈保护。VM现在将尝试修复堆栈保护。
强烈建议您使用“execstack-c”修复库,或使用“-z noexecstack”链接库。
无法加载本机代码库。

您可能希望在C中创建一个从Java代码调用的函数,该函数反过来调用您的C#函数


看看C到C桥。

JNBridgePro支持您的场景。它支持在Mono上运行.NET端,因此.NET端可以在Linux上运行。有关更多信息,请参阅JNBridge网站

披露:我和JNBridge在一起