Download Liberica Native Image Kit, a multilingual tool to create highly-performant native binaries from applications written for JVM.
Pick a version, package type, JDK/JRE, and download the binaries.
Source code
64 bit
Liberica Native Image Kit Core 23.0.6+1 x86 64 bit Windows
Liberica Native Image Kit Core 23.0.6+1 x86 64 bit macOS
Liberica Native Image Kit Core 23.0.6+1 x86 64 bit Linux
Liberica Native Image Kit Core 23.0.6+1 x86 64 bit Alpine Linux
NIK compiles JVM-based applications into platform native executables with the ahead-of-time compiler.
Native images created with NIK have several advantages over JVM applications:
Java LTS versions, Java 11, Java 17, and Java 21, and the current Java 22 are supported by Liberica NIK.
NIK works on Windows, Linux (including Alpine), macOS installed on machines with both x86, x64, and ARM CPUs (Linux only). YOu can use both glibc and musl.
Yes. There are a few ways to execute containerized applications with Liberica NIK. It enhances such apps with less RAM consumption, ease of communication, and high running speed.
Native image is the executable binary file that contains your application, all its dependencies, and runtime components, allowing you to run your Java program on any supported configuration without the need for installing runtime or any setup. Native image is the easiest way to distribute your program and start it up faster.
GraalVM is the open source virtual machine based on Java HotSpot VM, and integrates an optimizing just-in-time (JIT) compiler, written in Java. At run time, an application is loaded and executed normally by the JVM. Liberica Native Image Kit adds these advantages to the native image technology with an ahead-of-time compiler and Liberica JDK to help with creating fastest and smallest native images.
Yes, but only if you choose to utilize the NIK-full build of Liberica Native Image Kit. The media and web functions of JavaFX are not fully implemented. That means that native images created with Liberica JDK will run JavaFX-based applications in case they don’t utilize media and web functionality.
Remove the quarantine attribute from the bits. Run the following:
sudo xattr -r -d com.apple.quarantine /Library/Java/LibericaNativeImageKit
If you get this error try running:
xcode-select --install
If it does not help try
sudo xcode-select --reset