我应该如何在Visual Studio中使用.Jar文件作为DLL,或任何Waly将Jar文件转换为DLL [英] How Should I Use .Jar File In Visual Studio As Dll, Or Any Waly To Convert A Jar File To Dll

查看:324
本文介绍了我应该如何在Visual Studio中使用.Jar文件作为DLL,或任何Waly将Jar文件转换为DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.jar我想在我的视觉工作室项目中使用它,如dll的形式



有没有办法将其转换为dll

i have a .jar i want to use that in my visual studio project as in form of dll

Is there any way to convert it into dll

推荐答案

您是否 Google [ ^ ]但是?


JAR 文件是java的已编译代码单元的包装,所以你不能在c#或c ++应用程序中使用它们作为DLL,因为它们运行并依赖于java平台工作。



您可以通过运行时之间的消息传递在更高级别使用它们.net和java(如果JAR文件的功能完全可能的话,你必须自己创建一个协议和消息处理程序代码)。
JAR files are java's packaging for compiled code units, so you can't use them as DLL in c# or c++ applications since they run and rely on the java platform to work.

You could use them at a higher level through message passing between runtimes of .net and java (you will have to create a protocol and message handler code your self if it is at all possible for the functionality of the JAR files).


摘自以下链接。这可以帮助你朝着正确的方向发展。



An excerpt from following link. This could help you in the right direction.

Quote:

转换Java应用于.NET

IKVM.NET包括ikvmc,这是一个将Java .jar文件转换为.NET .dll库和.exe应用程序的实用程序。在本节中,您将Java应用程序转换为.NET .exe。

Convert a Java Application to .NET
IKVM.NET includes ikvmc, a utility that converts Java .jar files to .NET .dll libraries and .exe applications. In this section, you'll convert a Java application to a .NET .exe.





IKVM.NET教程 [ ^ ]


这篇关于我应该如何在Visual Studio中使用.Jar文件作为DLL,或任何Waly将Jar文件转换为DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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