将 IKVM 与 Tomcat 和 intellej 结合使用 [英] Using IKVM with Tomcat and intellej

查看:24
本文介绍了将 IKVM 与 Tomcat 和 intellej 结合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将 C# 文件转换为 jar.我想在使用 Spring 的 Java Web 应用程序中使用它.我目前正在使用 Intellej.我目前的问题是,我不知道如何让 tomcat 使用 IKVM.NET 虚拟机环境以及 intellej 使其工作.

I have converted a C# file into jar. I would like to use it in a Java Web application using Spring. I'm currently using Intellej. My current problem, is I don't know how to let tomcat uses the IKVM.NET Virtual Machine environment and also intellej for that to work.

推荐答案

IKVM 已死.多年来从未有过哪次维护.

IKVM is dead. There is never which maintenance it since years.

IKVM 也用于将 jar 文件转换为 .NET dll 而不是反向转换.无法在运行时使用通过 IKVM 创建的 jar 文件.这只是 Java 编译器的存根文件.

IKVM is also for converting a jar file to a .NET dll and not inverse. It is not possible to use a jar file created with IKVM at runtime. This are only stub files for the Java compiler.

如果你想在 IKVM 上使用 Tomcat,那么你需要将 Tomcat 的所有 jar 文件转换为 dll.对于调试,您需要使用 C# IDE(如 Visual Studio 而不是 IntelliJ).

If you want use Tomcat with IKVM then you need to convert all jar files of Tomcat to a dll. For debugging then you need to use a C# IDE like Visual Studio and not IntelliJ.

如果您想在 Java 中使用 C# 文件,那么 GraalVM 可以是一个解决方案,但我从未尝试过.

If you want use a C# file with Java then the GraalVM can be a solution but I have never try it.

这篇关于将 IKVM 与 Tomcat 和 intellej 结合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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