We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(9)
来自此处:
Java 中的开源安装程序生成器
IzPack
IzPack 是一个安装程序生成器Java 平台。它生成轻量级安装程序,可以在任何有 Java 虚拟机的操作系统上运行。根据操作系统的不同,可以通过双击或在 shell 上输入简单的“java -jar installer.jar”来启动它。最常见的用途是分发 Java 平台的应用程序,但您也可以将其用于其他类型的项目。 IzPack 的主要优点是它提供了一种干净且独特的方式将项目分发给使用不同操作系统的用户。
VAInstall
VAInstall 是一个用 Java 编写的多平台安装程序。它是在 GNU GPL 许可证 2 下分发的。通过一个简单的配置文件,它允许打包程序从磁盘上的各个位置选择文件和目录,而不是像其他安装程序那样只能选择一个根目录。打包程序可以完全重新组织目标主机上的文件和目录。他可以选择目标主机的安装模式(图形、xtra、文本或 ansi)。
Packlet
Packlet 是一个简单的 Java 安装程序工具。 Packlet 类似于 zip 或 tgz 文件:它将应用程序打包到可以分发的单个压缩文件中。 Packlet 文件是 Java 类文件,可以在任何安装了 Java 2 运行时环境的计算机上执行。执行 Packlet 会弹出一个安装程序 GUI 来配置和解压应用程序。
Lift Off Java Installer
Lift Off Java Installer 是 Java 应用程序的安装程序。亮点是自解压类文件、目标系统上 Java 安装的最低要求以及跨平台安装。
Mini Installer
一个用 Java 构建自安装程序的简单包。该过程是脚本驱动的,结果是一个独特的 JAR 文件,用户可以双击该文件来执行类似向导的安装过程。
JSmooth
JSmooth 是一个 Java 可执行包装器,可从 jar 文件生成标准 Windows 可执行二进制文件 (.exe)。它使 Java 部署更加顺畅且用户友好,因为它能够自行找到 Java VM。当没有可用的 VM 时,它会向用户提供反馈,并可以启动默认 Web 浏览器并访问解释如何下载 Java VM 的 URL。注意:未完全用 JAVA 编写
Launch4J
Windows 本机可执行文件 (.exe) java 应用程序包装器。提供本机启动屏幕、应用程序图标、搜索 JRE 或使用捆绑的 JRE、启动失败反馈、传递命令行参数。
AntInstaller
AntInstaller 是一个安装程序框架,它使用简单的 XML 文件来定义 UI,并使用 Apache Ant 作为后端。因此,安装程序可以执行 Ant 可以执行的任何操作,并且与 Ant 的扩展机制兼容。安装程序可以打包为自解压 Jar,并且可以从命令行或 Swing GUI 运行。 AntInstall 还可以用作现有 Ant 构建的 GUI 前端。
Antigen
Antigen(Ant 安装程序生成器)是一个工具,用于获取 Ant 构建脚本,将其与 GUI 结合起来,并将其包装为可执行 jar 文件。其主要目的是从 Ant 脚本创建强大的图形安装程序。
Java 服务包装器
包装器使得将 Java 应用程序安装为 Windows NT 服务成为可能。 Wrapper 提供的脚本还使得在 UNIX 系统上安装这些相同的 Java 应用程序作为守护进程变得非常容易。 Wrapper 可以正确处理 Windows 下的用户注销、服务依赖性以及运行与桌面交互的服务的能力。
From here:
Open Source Installers Generators in Java
IzPack
IzPack is an installers generator for the Java platform. It produces lightweight installers that can be run on any operating system where a Java virtual machine is available. Depending on the operating system, it can be launched by a double-click or a simple 'java -jar installer.jar' on a shell. The most common use is to distribute applications for the Java platform, but you can also use it for other kinds of projects. The main benefit of IzPack is that it provides a clean and unique way of distributing a project to users using different operating systems.
VAInstall
VAInstall is a multi-platform installer written in Java. It is distributed under the GNU GPL License 2. Through a simple config file, it allows the packager to pick files and directories from various places on disk, and not only one root dir like other installers. The packager can completely reorganize the files and dirs on the destination host. He can choose the install mode for the destination host (graphic, xtra, text or ansi).
Packlet
Packlet is a simple installer tool for Java. A packlet is similar to a zip or tgz file: it packages an application into a single compressed file that can be distributed. Packlet files are Java class files that can be executed on any machine with Java 2 Runtime Environment installed. Executing a packlet brings up an installer gui to configure and unpack the application.
Lift Off Java Installer
Lift Off Java Installer is an installer for Java applications. Highlights are self-extracting class files, minimal requirements for the Java installation on the target system, and cross platform installation.
Mini Installer
A simple package to build self installating programs in Java. The process is script driven, the result is a unique JAR file that the user can double click to execute a wizard-like installation process.
JSmooth
JSmooth is a Java Executable Wrapper that makes a standard Windows executable binary (.exe) from a jar file. It makes java deployment much smoother and user-friendly, as it is able to find a Java VM by itself. When no VM is available, it provides feed-back to the users, and can launch the default web browser to an URL that explains how to download a Java VM. Note: NOT COMPLETELY WRITTEN IN JAVA
Launch4J
Windows native executable (.exe) java application wrapper. Offers native splash screen, application icon, search for JRE or use bundled one, feedback on startup failure, passes command line arguments.
AntInstaller
AntInstaller is an installer framework which uses a simple XML file to define the UI, and Apache Ant as a back end. The installers can therefore do anything Ant can, and are compatible with Ant's extension mechanism. Installers can be packaged as a selfextracting Jar and can run from the command line or a Swing GUI. AntInstall can also be used as a GUI front end for existing Ant builds.
Antigen
Antigen (Ant Installer Generator) is a tool to take an Ant build script, combine it with a GUI and wrap it up as an executable jar file. Its primary purpose is to create powerful graphical installers from Ant scripts.
Java Service Wrapper
The Wrapper makes it possible to install a Java Application as a Windows NT Service. The scripts provided with the Wrapper also make it very easy to install those same Java Applications as daemon processes on UNIX systems. The Wrapper correctly handles user log outs under Windows, service dependencies, and the ability to run services which interact with the desktop.
部署应用程序。从使用 Java Web Start 的网站。使用
deployJava.js
(从 JWS 信息页面链接)确保用户拥有最低限度的 Java。更新
Java 插件(用于部署 applet 和 webstart 应用程序)在 Java 9 中已被弃用,并很快从 API 中删除。 这不再是一个可行的选择。
Deploy the app. from a web site using Java Web Start. Ensure the user has the minimum Java using
deployJava.js
(linked from the JWS info page).Update
The Java Plug-In (used to deploy both applets and webstart applications) was deprecated around Java 9 and removed from the API soon after. This is no longer a viable option.
您可以使用 WiX 创建 Windows Installer 包。该包将包含 JRE 二进制文件和编译的应用程序(jar 文件)。安装后,安装程序将您的文件解压到用户的计算机,创建启动应用程序的快捷方式(
app-path\jre\bin\javaw.exe -jar app-path\your-app.jar
)。请参阅有关重新分发 JRE 和 自述文件。
You can use WiX to create Windows Installer package. The package will include the JRE binaries and your compiled application (jar file). Upon installation, the installer unpacks your files to user's computer, creates shortcut that starts your application (
app-path\jre\bin\javaw.exe -jar app-path\your-app.jar
).See notes on Redistributing the JRE and in README.
您可以使用 NSIS 或 Inno 设置
You can use either NSIS or Inno Setup
我使用一个名为 JSmooth 的程序。这会将 java .jar 文件转换为可执行文件。然后,我获取这些可执行文件并使用 InstallShield 创建安装程序。 InstallShield 允许您创建高度可定制的安装程序。有一个免费的“Light Edition”可供您使用。非常容易做到,也很容易添加到构建脚本中。
I use a program called JSmooth. This turns java .jar files into executables. I then take those executable and create a installer using InstallShield. InstallShield allows you to create highly customizable installers. There is a free "Light Edition" that you can use. Very easy to do and very easy to add to build scripts.
您可以在 Eclipse IDE 下将 Ant 任务工具与 InnoSetup 和 Launch4j 结合使用,为基于 Java 的程序创建具有专业外观的基于 Windows 的 EXE 安装程序:如何在java中创建exe文件
You can use Ant task tool with InnoSetup and Launch4j under Eclipse IDE to create a professional-looking Windows-based EXE installer for Java-based program: How to create an exe file in java
您可以使用 install4j 为 java 项目的 jar 文件创建 exe 文件,并使用 Inno Setup Compiler 文件为项目创建安装程序。此 ts Youtube 视频介绍了如何创建 exe 和安装程序
创建 exe 和安装程序的视频
You can use the install4j for the create exe file for jar file of java project and use the Inno Setup Compiler file for create the installer for the project. this ts Youtube vedio for the how to create the exe and installer
video for create the exe and installer
基本上,你必须将项目保存在jar中,然后转换为exe,你可以使用jar4exe或其他软件。获得 exe 文件后,请使用 Inno Setup Compile 等安装程序软件。完成所有这些步骤后,您的项目将准备好安装在 Windows、Mac 或 Linux 平台上。祝你好运。
Basically, you have to save your project in jar and then convert to exe, you can use jar4exe or other software. When you have the exe file, use an installer software like Inno Setup Compile or other. After all those stpes Your project will be ready to be install in windows, mac or linux platform. Good Luck.
安装exe4j
安装 inno setup 编译器
一个过时但相关的视频来指导您完成
https://www.youtube.com/watch?v=kSmhIunxVW4
Install exe4j
Install inno setup compiler
An outdated but relevant video to guide you through
https://www.youtube.com/watch?v=kSmhIunxVW4