运行java不安装jre? [英] Running java without installing jre?

查看:244
本文介绍了运行java不安装jre?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据这里的问题和答案,python在没有安装程序的情况下有一个有用的部署方式。 Java可以做同样的事情吗?




  • 有没有办法在没有安装jre的情况下运行Java的jar文件?

  • 是否有工具像java2exe(win32),java2bin(linux)或java2app(mac)这样的东西?


解决方案

您可以使用 Launch4j 进行此操作。良好的记录和易于使用。虽然生成的程序仍然需要运行JRE,但您不必在目标系统上安装JRE。你可以用你的应用程序复制它,并告诉Launch4j找到它,或者只是将其包装起来。


As asked and answered here, python has a useful way of deployment without installers. Can Java do the same thing?

  • Is there any way to run Java's jar file without installing jre?
  • Is there a tool something like java2exe (win32), java2bin (linux) or java2app (mac)?

解决方案

You can use Launch4j for this. Well documented and easy to use. While the resulting program still needs a JRE to run, you don't have to install the JRE on the target system. You can just copy it with your application and tell Launch4j were to find it or just wrap it up with everything else.

这篇关于运行java不安装jre?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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