从Java调用C#code? [英] Calling C# code from Java?

查看:126
本文介绍了从Java调用C#code?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人有一些整合C#code到Java应用程序一个好的解决方案?

Does anyone have a good solution for integrating some C# code into a java application?

在code是小的,这样我就可以重新用Java编写的,但如果可能的话,我宁愿重用code。不要重复自己,等等。

The code is small, so I could re-write in java, but I would rather reuse the code if possible. Don't repeat yourself, etc.

另外,我知道我可以公开的C#作为Web服务或什么的,但它在那里一些安全/加密的东西,所以我宁愿把它紧密集成如果可能的话。

Also, I know I can expose the C# as a web service or whatever, but it has some security/encryption stuff in there, so I would rather keep it tightly integrated if possible.


编辑:这将是一个基于服务器的应用程序,所以下载另一个运行时是无关紧要的。

It's going to be on a server-based app, so "downloading" another runtime is irrelevant.

推荐答案

有是IL到Java字节code编译器的蚂蚱这可能是利用你。我从来没有尝试过,但。

There is an IL to Java Bytecode compiler GrassHopper which may be of use to you. I've never tried it though.

我想看看重写在Java中的code虽然

I'd look at rewriting your code in Java though

这篇关于从Java调用C#code?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆