Skip to content

Commit 8b1d269

Browse files
committed
Added article about native binaries with 4.12.0
1 parent 03920e9 commit 8b1d269

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
title: "OpenFastTrace 4.12.0: Native Binaries"
3+
date: 2026-11-27
4+
draft: false
5+
author: "sebastian"
6+
---
7+
8+
With OpenFastTrace 4.12.0, we are adding native command-line executables to the release assets. Until now, running OFT meant downloading the executable JAR and having a suitable JVM available. That remains a good option, especially for Java-based integrations, but it adds a prerequisite that is unnecessary when all you need is the command-line tool.
9+
10+
The native executables are self-contained for the OFT features they include. Download the file for your platform, make it executable where required, and run it:
11+
12+
```sh
13+
chmod +x openfasttrace-linux-x64
14+
./openfasttrace-linux-x64 --help
15+
```
16+
17+
## What is in the release
18+
19+
The GitHub release for 4.12.0 contains these executables:
20+
21+
* `openfasttrace-linux-x64` for 64-bit x86 Linux
22+
* `openfasttrace-linux-arm64` for 64-bit ARM Linux
23+
* `openfasttrace-macos-arm64` for Apple Silicon Macs
24+
* `openfasttrace-windows-x64.exe` for 64-bit Windows
25+
26+
For now, GitHub Releases are the only distribution channel for the native binaries. Find the assets in the [OpenFastTrace 4.12.0 release](https://github.com/itsallcode/openfasttrace/releases/tag/4.12.0).
27+
28+
The existing executable JAR is still published alongside them. Choose it when you already run OFT on a JVM, embed OFT in a Java-based workflow, or need to load external Java plugin JARs. Native executables contain OFT's built-in importers, exporters, and reporters, but loading arbitrary external Java plugins is deliberately not part of the native-image setup.
29+
30+
## Behind the scenes: turning a Java CLI into an executable
31+
32+
The binaries are built with GraalVM Native Image. Instead of distributing bytecode and starting a JVM, the native-image build analyzes the application and packages the code and resources it needs into a platform-specific executable. The result can start directly on its target operating system without a separately installed Java runtime.
33+
34+
That analysis has a practical consequence for OFT. The tool discovers importers, exporters, and reporters as plugins. In a regular JVM run, those components can be found dynamically. A native image needs to know at build time which classes and resources must be retained. It is easy to create an executable that starts successfully while silently omitting an importer or reporter that was not included in the image.
35+
36+
We therefore treat the native build as more than a packaging step. Each target executable is built and exercised on a matching operating system and processor architecture. The integration tests run actual CLI operations against every built-in importer, exporter, and reporter and check their results. This is intended to catch missing service registrations and bundled resources before an asset reaches the release.
37+
38+
## Size Comparison
39+
40+
GraalVM analyzes which parts of the JVM are needed and includes only those in the finished binary.
41+
42+
| Artifact | Size |
43+
|--------------------------|--------|
44+
| JAR | 487 kB |
45+
| JRE (OpenJDK) compressed | 61 MB |
46+
| JRE expanded | 192 MB |
47+
| Linux x64 executable | 34 MB |
48+
| Linux ARM executable | 32 MB |
49+
| macOS ARM executable | 32 MB |
50+
| Windows executable | 40 MB |
51+
52+
While the executable is notably larger than the JAR alone, only a small part of the JRE goes into the binary. For example, there are no networking libraries in the binary because OFT does not use them.
53+
54+
**Fun Fact:**
55+
56+
The Java XML library contributes about 3 MB already.
57+
58+
## Which download should I use?
59+
60+
If you use the OFT CLI with its built-in functionality, select the native file matching your operating system and CPU architecture. It avoids the JVM installation step and otherwise uses the same command-line interface:
61+
62+
```sh
63+
oft trace requirements
64+
```
65+
66+
If your workflow depends on custom or third-party Java plugin JARs, keep using the executable JAR with a JVM. That is the extensible distribution; native executables are intentionally closed over the built-in feature set.
67+
68+
Checksums are provided with the release assets. Verify the file you download before adding it to a CI image or a developer-tool installation.

0 commit comments

Comments
 (0)