Java 应用程序安装程序

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/184060/
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-08-11 11:01:39  来源:igfitidea点击:

Java Application Installers

javainstallertoolkit

提问by Kyle Burton

I'm not looking for java-web-start, I'm looking for a thick-client application installation toolkit. I've got a stand-alone application that consists of several files (jar files, data files, etc) and would need to do some pretty standard installation tasks, like asking the user for target directories, have them locate some parts of their system - choose some of the per-machine or per-user configuration options and possibly try to detect some of the machine settings for them.

我不是在寻找 java-web-start,而是在寻找胖客户端应用程序安装工具包。我有一个由多个文件(jar 文件、数据文件等)组成的独立应用程序,需要执行一些非常标准的安装任务,例如询问用户目标目录,让他们找到系统的某些部分- 选择一些每台机器或每用户配置选项,并可能尝试为它们检测一些机器设置。

I'm looking for something which is like the MSI or other wizard driven installation applications. What's a good installer for Java? It would be ideal if it were cross-platform capable (Linux, Mac OSX and Windows).

我正在寻找类似于 MSI 或其他向导驱动的安装应用程序的东西。什么是好的 Java 安装程序?如果它具有跨平台能力(Linux、Mac OSX 和 Windows),那将是理想的。

采纳答案by Sebastian J.

Not an MSI-Installer but crossplatform: izPack

不是 MSI 安装程序,而是平台: izPack

It's xml-file based with it's own GUI or ant task (whtaever you prefer)

它是基于它自己的 GUI 或 ant 任务的 xml 文件(无论你喜欢什么)

回答by marcospereira

If you are looking for an Open Source solution, take a look here: http://java-source.net/open-source/installer-generators

如果您正在寻找开源解决方案,请查看此处:http: //java-source.net/open-source/installer-generators

I have used InstallAnywhereand I think that it is a good solution too.

我使用过InstallAnywhere,我认为它也是一个很好的解决方案。

回答by anjanb

Launch4j -- open source -- http://launch4j.sourceforge.net/

Launch4j -- 开源 -- http://launch4j.sourceforge.net/

InstallJammer -- http://www.installjammer.com/

InstallJammer -- http://www.installjammer.com/

回答by Draemon

The Nullsoft Scriptable Install System NSIS(originally used for winamp) creates really nice installers for windows, and it's very powerful. It has a compiler that runs under linux, but the resulting installer is windows-only, unfortunately.

Nullsoft Scriptable Install System NSIS(最初用于 winamp)为 Windows 创建了非常好的安装程序,它非常强大。它有一个在 linux 下运行的编译器,但不幸的是,生成的安装程序仅适用于 Windows。

It's pretty heavy-weight, but worth keeping in mind if you might have to do any vaguely complex or non-standard things during installation.

它非常重,但如果您在安装过程中可能需要做任何模糊复杂或非标准的事情,请记住。

I have used it since it integrates nicely with my (linux) build system, and I'd want to use packages for installing on linux anyway.

我一直在使用它,因为它与我的 (linux) 构建系统很好地集成在一起,无论如何我都想使用软件包在 linux 上进行安装。

回答by ahu

AntInstallerenables you to create cross-platform installers where the installation itself is performed using an ANTscript. The GUI is configured with an XML config file.

AntInstaller使您能够创建跨平台安装程序,其中安装本身是使用ANT脚本执行的。GUI 使用 XML 配置文件进行配置。

We used it to create quite complex installers. For complex GUIs however, the configuration can get very difficult. The next time I would probably try izPackbecause it seems to support ANT as well but has nicer GUIs.

我们用它来创建相当复杂的安装程序。然而,对于复杂的 GUI,配置会变得非常困难。下次我可能会尝试izPack,因为它似乎也支持 ANT,但具有更好的 GUI。

回答by michelemarcon

I suggest izPackwith packHymanet

我建议izPackpackHymanet

回答by Daniel Lopez

Although it is not Java-based, about half of our customers use BitRock InstallBuilderto package Java applications. It is cross-platform and supports all the OS that you require (Linux, Windows, Mac). The installer is native, so there are certain advantages to it, such as not requiring a self-extraction step or the need to bundle a JRE, so the installers tend to be smaller in size

虽然它不是基于 Java 的,但我们约有一半的客户使用BitRock InstallBuilder来打包 Java 应用程序。它是跨平台的,支持您需要的所有操作系统(Linux、Windows、Mac)。安装程序是原生的,所以它有一定的优势,比如不需要自解压步骤或者需要捆绑一个JRE,所以安装程序的体积往往更小