How can I use a .Net assembly in Java

后端 未结 2 705
暗喜
暗喜 2020-12-11 08:51

I want to use a Microsoft .Net Assembly in a Java Application. Is there any way out to do that.

Any help will be appreciated.

相关标签:
2条回答
  • 2020-12-11 09:07

    Something interesting on the same topic: ikvm

    0 讨论(0)
  • 2020-12-11 09:09

    Java and .Net run an fundamentally different systems: the JVM and CLR respectively. It's not possible to directly load one into the other and use it. They are incompatible formats.

    It is possible though to have .Net and Java components interact through a bridge layer. There are several out there which provide this behavior

    • http://www.jnbridge.com/
    • http://java-dotnet-bridge.com/

    Note: Most of these solutions though are aimed at sharing well defined components as opposed to directly loading libraries. This may or may not work for you.

    0 讨论(0)
提交回复
热议问题