简体   繁体   English

将Java库公开到.NetCore2.2

[英]Expose Java Library to .NetCore2.2

I'm upgrading to .NetCore2.2 from .NetFramework4.7.2 and there is legacy code that uses a java library that I would like to continue using after the conversion (I would prefer to not change this library). 我正在从.NetFramework4.7.2升级到.NetCore2.2,并且有一些遗留代码使用了Java库,我希望在转换后继续使用它(我希望不更改此库)。

While using .NetFramework I used IKVM to execute this library, but it is unavailable in .NetCore, and I haven't found alternatives that work in .NetCore. 在使用.NetFramework时,我使用IKVM执行该库,但是在.NetCore中不可用,并且我还没有找到在.NetCore中工作的替代方法。

So far I've only tried jni4net as I have not found anything else to look at. 到目前为止,我只尝试了jni4net,因为我没有发现其他要看的东西。

Is there a way to use this java library in .NetCore, or can anyone suggest an alternative way to consume it? 是否可以在.NetCore中使用此Java库,或者有人可以建议使用该库的替代方法?

Thanks in advance. 提前致谢。

JNBridgePro可与.NET Core一起使用,但它是.NET Core 3.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM