java java最好的安装工具是什么?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/173392/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 11:16:57  来源:igfitidea点击:

What is the best installation tool for java?

javainstaller

提问by vaske

Depends on your experience could you recommend something? I've use izpack, and it's very nice tool, is there any other, better tool?

取决于你的经验,你能推荐一些东西吗?我用过izpack,它是非常好的工具,还有其他更好的工具吗?

采纳答案by Riyaz Mohammed Ibrahim

In MS Windows NSISis great and it's free & OSS

在 MS Windows 中,NSIS很棒,而且是免费的和 OSS

Ref: Java Launcher with automatic JRE installation

参考:带有自动 JRE 安装的 Java Launcher

回答by gbjbaanb

for Windows there's AdvancedInstaller, it was very easy to use and created standard .msi files. It has some extra features for Java installs.

对于 Windows,有AdvancedInstaller,它非常易于使用并创建了标准的 .msi 文件。它有一些用于 Java 安装的额外功能。

回答by gbjbaanb

I am happy with install4j. (even run it from my ant scripts)

我对 install4j 很满意。(甚至从我的蚂蚁脚本运行它)

回答by Daniel Lopez

I would like to suggest our cross platform installation tool, BitRock InstallBuilder. Although it is not Java-based, it is commonly used to package Java applications. It can be easily integrated with Ant and you can build Windows installers from Unix/Linux/Mac and the other way around. Because the generated installers are native, they do not require a self-extraction step or bundling a JRE, which means smaller installers and saves you some headaches. I also would like to mention we have free licenses for open source projects

我想推荐我们的跨平台安装工具BitRock InstallBuilder。虽然它不是基于 Java 的,但它通常用于打包 Java 应用程序。它可以轻松地与 Ant 集成,您可以从 Unix/Linux/Mac 构建 Windows 安装程序,反之亦然。由于生成的安装程序是本机的,它们不需要自解压步骤或捆绑 JRE,这意味着安装程序更小,并为您省去一些麻烦。我还想提一下,我们有开源项目的免费许可证

回答by Daniel Lopez

I'd suggest InstallJammer. It's not written in Java, but it's cross-platform and provides capabilities to handle Java-based applications during installation. Being that it's not based on Java, it doesn't actually require any version of the JRE to be installed on the target system, which is kind of nice, but you can still use actions within your installer to locate versions of the JRE for your application. The installers are small and completely self-contained.

我建议InstallJammer。它不是用 Java 编写的,但它是跨平台的,并提供在安装过程中处理基于 Java 的应用程序的功能。由于它不是基于 Java,它实际上并不需要在目标系统上安装任何版本的 JRE,这很好,但是您仍然可以使用安装程序中的操作来为您的系统定位 JRE 的版本应用。安装程序很小并且完全独立。

It's also free and open source, if that matters to you. It does to some. :)

如果这对您很重要,它也是免费和开源的。对某些人确实如此。:)

回答by Sarel Botha

I know you said installer, but I think it is worth mentioning JSmooth. It's a launcher that generates an exe file for Windows. The reason it is worth mentioning is because it performs the job of location a JVM and can also download and install it for the user. This is often left up to the installer to do. Doing it dynamically like this is nicer though since Java gets updated quite often and JSmooth will always use the latest version JVM it can find (within your parameters).

我知道你说的是安装程序,但我认为值得一提的是 JSmooth。它是一个为 Windows 生成 exe 文件的启动器。值得一提的原因是因为它执行定位 JVM 的工作,并且还可以为用户下载和安装它。这通常由安装人员来完成。像这样动态执行它会更好,因为 Java 经常更新并且 JSmooth 将始终使用它可以找到的最新版本的 JVM(在您的参数范围内)。

回答by Sarel Botha

We are using IZPack for quit a while and are very satisfied. You can build installers for nearly all platforms and it integrates well with your build tools like maven.

我们正在使用IZPack退出一段时间,非常满意。您可以为几乎所有平台构建安装程序,并且它可以与您的构建工具(如 maven)很好地集成。

回答by anjanb

sun has come out with a new version : https://openinstaller.dev.java.net/-- this is open source and sun will be using this to launch most of their server side products/projects.

sun 推出了一个新版本:https: //openinstaller.dev.java.net/——这是开源的,sun 将使用它来启动他们的大部分服务器端产品/项目。

回答by Jay

Since no one has mentioned it yet, I'll go ahead and plug InstallAnywhere. We use it at work for all our products and I can't say we've really had any problems with it (that weren't caused by mistakes in our own scripts at least!). It's a cross-platform GUI installer which is a nice feature if you expect to have different desktop environments in play, and it also supports console installers, silent installs, etc.

由于还没有人提到它,我将继续插入InstallAnywhere。我们在所有产品中都使用它,我不能说我们真的遇到了任何问题(至少不是由我们自己的脚本中的错误引起的!)。这是一个跨平台的 GUI 安装程序,如果您希望使用不同的桌面环境,这是一个很好的功能,它还支持控制台安装程序、静默安装等。

I googled around a bit and here's a reviewof InstallAnywhere you might find helpful. It's from a first time user, rather than a publication or thinly veiled press release, which probably makes it less biased and a better indicator of what your experience using it might be like.

我在谷歌上搜索了一下,这里是对 InstallAnywhere的评论,您可能会觉得有帮助。它来自第一次用户,而不是出版物或隐蔽的新闻稿,这可能会减少偏见,并更好地指示您使用它的体验可能是什么样的。