1

正如题主所说,这可能吗?我知道 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.
4

2 回答 2

2

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

在这里查看C 到 C# 的桥接器。

于 2016-04-24T20:48:11.447 回答
0

JNBridgePro 支持您的方案。它支持在 Mono 上运行 .NET 端,因此 .NET 端可以在 Linux 上运行。有关详细信息,请参阅 JNBridge 网站。

披露:我在 JNBridge。

于 2016-04-26T06:05:53.933 回答