我可以将jar文件转换为exe吗? [英] Could i convert a jar file to exe?

查看:170
本文介绍了我可以将jar文件转换为exe吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

(Java)jar to exe

如果我想要运行怎么办?没有JDK的电脑上的.jar程序......?

What if i want to run a .jar program on a pc that doesnt have the JDK...?

可能吗?

推荐答案

选项包括:


  • 在安装程序中包含Java Runtime Enviroinment(JRE)。这可能是最简单的选择。

  • 包含JRE''和''将应用程序包装在一个小的本机可执行启动器中。 Exe4J 使MS Windows变得简单。

  • 将Java代码编译为本机可执行文件。我自己没有这样做。一家声称支持这一点的公司是Excelsior;他们对此处的方法进行了比较。

  • Include the Java Runtime Enviroinment (JRE) in your installer. This is probably the simplest option.
  • Include the JRE ''and'' Wrap your application in a small, native executable launcher. Exe4J makes this easy for MS Windows.
  • Compile your Java code to native executable. I haven't done this myself. A company claiming to support this is Excelsior; they have a comparison of approaches here.

这篇关于我可以将jar文件转换为exe吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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