问题描述
有哪些选项/方法/软件可用于将JAR文件转换为托管.NET程序集?请在答案中提供所有商业和非商业方法。
这些不包括需要在主机上安装Java的解决方案。
What options/methods/software are available to convert a JAR file to a managed .NET assembly? Please provide all commercial and non-commercial methods in the answer.These don't include solutions which require Java to be installed on the host machine.
推荐答案
我可能是错的,但我很确定这是不可能的。 java字节代码与在CLR上生成的代码不同。
I could be wrong, but I'm pretty sure that's impossible. The java byte code is different to the code produced to run on the CLR.
Snarky回答:获取源代码并移植它。
Snarky answer: Get the source code, and port it.
编辑:,.NET的Java虚拟机实现。不是你要求的,但它可能是你能做的最好的。
A little poking comes up with http://sourceforge.net/projects/ikvm/, a Java Virtual Machine implementation for .NET. Not quite what you asked for, but it's probably going to be the best you can do.
这篇关于在.NET中使用Java JAR文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!