# 使用 Homebrew, MacPorts 安装 launch4j

查看 launch4j 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:launch4j
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install launch4j
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install launch4j
```

  证据: MacPorts ports tree: java/launch4j/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:launch4j
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/launch4j>
- **版本:** 3.50
- **来源摘要:** Cross-platform Java executable wrapper
- **主页:** <https://launch4j.sourceforge.net/>
- **仓库:** <https://sourceforge.net/p/launch4j/git/ci/master/tree>
- **上游文档:** <https://launch4j.sourceforge.net/docs.html>
- **许可证:** BSD-3-Clause AND MIT
- **源码归档:** <https://git.code.sf.net/p/launch4j/git.git>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- launch4j (cli)
- launch4j (别名)

## 依赖

- openjdk

## 构建依赖

- ant

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-07-25
- 管理器版本: 3.50
- 本地数据: OK
- 上游仓库: https://launch4j.sourceforge.net/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Launch4j is a cross-platform build utility for wrapping Java applications in lightweight Windows native executables. It combines a GUI, command-line usage, Ant integration, Maven-oriented packaging, JRE discovery, version metadata, splash screens, manifests, and optional bundled-runtime behavior.

### 项目历史

The SourceForge project was registered on 2003-11-27 and is maintained under Grzegorz Kowal's SourceForge account. Its changelog shows a long-lived Java desktop tooling project: the 1.x line was active by 2004, version 2.0 beta1 on 2005-05-13 introduced a new cross-platform wrapper and XML configuration, and version 3.0.0 on 2008-03-16 added runtime and Windows integration improvements.

Later releases tracked Java and Windows ecosystem changes. Version 3.8 on 2015-05-09 Mavenized the project; version 3.11 on 2017-06-27 added basic Java 9 support and Linux 64-bit binaries; version 3.14 on 2021-03-07 switched to Java 1.8 and FlatLaf; version 3.50 on 2022-11-13 simplified runtime-search configuration.

### 采用历史

Launch4j became a standard answer for Java developers who wanted a Windows .exe without abandoning cross-platform build machines. SourceForge lists operating-system support across Linux, Mac, Solaris, Windows, BSD, and ChromeOS for the tool itself, while noting that the wrapped program runs on Windows.

Homebrew and MacPorts packaging placed Launch4j into Unix-like developer workflows, especially for developers building Windows deliverables from macOS or Linux.

### 使用方式

A developer supplies a Launch4j XML configuration describing the jar or class entry point, icon, JRE constraints, command-line behavior, version information, and other wrapper settings. Launch4j then emits a Windows executable while the build can run from Windows, Linux, or macOS.

### 为什么软件包爱好者会关心

Launch4j is package-nerd-significant because it is a bridge artifact: a Java program packaged on Unix-like systems whose main output is a Windows executable wrapper. It exercises packaging assumptions around GUI tools, command-line tools, Ant/Maven integration, MinGW-built headers, bundled runtimes, and platform-specific outputs.

### 时间线

- 2003: SourceForge project registered on 2003-11-27.
- 2004: Changelog includes version 1.3.1 dated 2004-11-05.
- 2005: Version 2.0 beta1 introduced a cross-platform wrapper and XML configuration.
- 2008: Version 3.0.0 added dynamic heap values and Windows integration fixes.
- 2015: Version 3.8 Mavenized Launch4j.
- 2017: Version 3.11 added basic Java 9 support and Linux 64-bit binaries.
- 2021: Version 3.14 switched dependencies to Java 1.8 and FlatLaf.
- 2022: Version 3.50 changed runtime path-search behavior.

### Related projects

- Related technologies include Java, Windows PE executables, MinGW, Ant, Maven, Sign4j, bundled JRE workflows, and platform-specific Java launchers.

### 来源

- <https://formulae.brew.sh/formula/launch4j>
- <https://launch4j.sourceforge.net/>
- <https://launch4j.sourceforge.net/changelog.html>
- <https://launch4j.sourceforge.net/docs.html>
- <https://sourceforge.net/p/launch4j/git/ci/master/tree/>
- <https://sourceforge.net/projects/launch4j/>


## 安全说明

没有找到 launch4j 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** launch4j
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** arch, macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- MacPorts - launch4j: normalized package name match | MacPorts ports tree: java/launch4j/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [openjdk](https://www.automicvault.com/zh-hans/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [ant](https://www.automicvault.com/zh-hans/pkg/brew/ant/) - Build dependency declared by Homebrew.
- [jslint4java](https://www.automicvault.com/zh-hans/pkg/brew/jslint4java/) - Shares av.db curated category or tags: cli, developer-tools, java, wrapper.
- [maven](https://www.automicvault.com/zh-hans/pkg/brew/maven/) - Shares av.db curated category or tags: build-tool, cli, developer-tools, java.
- [maven-shell](https://www.automicvault.com/zh-hans/pkg/brew/maven-shell/) - Shares av.db curated category or tags: build-tool, cli, developer-tools, java.
- [mill](https://www.automicvault.com/zh-hans/pkg/brew/mill/) - Shares av.db curated category or tags: build-tool, cli, developer-tools, java.
- [mx](https://www.automicvault.com/zh-hans/pkg/brew/mx/) - Shares av.db curated category or tags: build-tool, cli, developer-tools, java.
- [alloy-analyzer](https://www.automicvault.com/zh-hans/pkg/brew/alloy-analyzer/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [amdatu-bootstrap](https://www.automicvault.com/zh-hans/pkg/brew/amdatu-bootstrap/) - Shares av.db curated category or tags: cli, developer-tools, java.
- [jasmin](https://www.automicvault.com/zh-hans/pkg/brew/jasmin/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, java, openjdk.
- [makensis](https://www.automicvault.com/zh-hans/pkg/brew/makensis/) - Local metadata places this package in an adjacent workflow. Shared terms: build, build-tool, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/launch4j.yml](https://github.com/automic-vault/db/blob/main/combined/launch4j.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
