Liberica NIK 25: Installation Guide
This document provides installation instructions for Liberica Native Image Kit (NIK) 25.0.3-1 (25.0.3+12) on different operating systems.
You can download Liberica NIK from either the Liberica JDK Download Center or, as a support-plan customer, via a link on the support portal. After you log in to the support portal, you can see a direct link to the version of the Liberica product you requested under Technologies. If you use the Liberica Download Center page, scroll down and select the NIK version, OS, and package type. After the download is finished, you can verify the downloaded file by comparing its size on your drive to the size on the Downloads page.
Pick your platform below — your choice is remembered as you scroll and when you switch versions.
Apple macOS
Section titled “Apple macOS”Choose an installation method:
Installing the DMG bundle on macOS
Section titled “Installing the DMG bundle on macOS”-
To run the installer, double-click the file you have downloaded.
-
Double-click the pkg icon to open the Install Liberica NIK Wizard.
-
Click Continue on the Welcome screen.
-
Optionally, you can change the installation location. Press Install to proceed.
-
Confirm the new software installation. The files will start copying immediately.
-
Once the installation is complete, press Close to exit the installation wizard.
Liberica NIK 25.0.3 is installed to the /Library/Java/LibericaNativeImageKit/liberica-vm-25.0.3-openjdk25/ directory, or another directory with a similar name in /Library/Java/LibericaNativeImageKit, depending on the selected version of the JDK and package type (core, standard, or full). You can use the $NIK_HOME environment variable to store the path to the installed package: /Library/Java/LibericaNativeImageKit/liberica-vm-25.0.3-openjdk25/Contents/Home/.
Installing the ZIP bundle on macOS
Section titled “Installing the ZIP bundle on macOS”-
To install Liberica NIK, download the
.zippackage.Terminal window curl -O https://download.bell-sw.com/vm/25.0.3/bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-macos-amd64.zip -
After the download is finished, unpack the file.
Terminal window unzip bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-macos-amd64.zipsudo mv bellsoft-liberica-vm-openjdk25-25.0.3 /Library/Java/LibericaNativeImageKit/This unpacks Liberica NIK to
/Library/Java/LibericaNativeImageKit/. Either add theContents/Home/binsubdirectory to$PATH, or remember/Library/Java/LibericaNativeImageKit/bellsoft-liberica-vm-openjdk25-25.0.3/Contents/Home/as the$NIK_HOMEenvironment variable.
To uninstall Liberica NIK, simply remove its directory and unset the related environment variables.
Installing with SDKMAN!
Section titled “Installing with SDKMAN!”SDKMAN! installs Liberica NIK as a Java candidate (the -nik suffix), on macOS and Linux:
sdk install java 25.0.3.r25-nikSDKMAN exposes only the current NIK build; run sdk list java | grep nik for the available identifier. The .fx suffix (25.0.3.fx-nik) adds JavaFX support.
Liberica NIK dependencies on macOS
Section titled “Liberica NIK dependencies on macOS”Install the necessary tools with the following command:
xcode-select --installChoose an installation method:
Installing DEB and RPM packages
Section titled “Installing DEB and RPM packages”Download either the .rpm or .deb package, then install it using the appropriate package manager.
For an Apt-based system:
sudo apt install ./bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-linux-amd64.debOr for an RPM-based system:
sudo yum install ./bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-linux-amd64.rpmThe package is installed to /opt/bellsoft/liberica-vm-25.0.3-openjdk25/.
For scripting purposes, we recommend adding the ${NIK_HOME} environment variable that points to your Liberica Native Image Kit installation directory.
Installing the standalone NIK package on GNU/Linux
Section titled “Installing the standalone NIK package on GNU/Linux”-
To install Liberica NIK, download the
.tar.gzpackage and unpack it with the following commands:Terminal window export INSTALL_DIR=<your directory>tar -C $INSTALL_DIR -xzf bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-linux-amd64.tar.gz -
This unpacks Liberica NIK to the selected directory. Either add
$INSTALL_DIR/bellsoft-liberica-vm-openjdk25-25.0.3/binto$PATH, or remember$INSTALL_DIR/bellsoft-liberica-vm-openjdk25-25.0.3as the$NIK_HOMEenvironment variable.
To uninstall Liberica NIK, simply remove this directory and unset the related environment variables.
Installing with SDKMAN!
Section titled “Installing with SDKMAN!”SDKMAN! installs Liberica NIK as a Java candidate (the -nik suffix):
sdk install java 25.0.3.r25-nikSDKMAN exposes only the current NIK build; run sdk list java | grep nik for the available identifier.
Liberica NIK dependencies on Linux
Section titled “Liberica NIK dependencies on Linux”Several libraries are required for Liberica Native Image Kit on Linux systems. Install these libraries on Debian-based systems with the following command:
sudo apt install g++ make zlib1g-devYou can use a similar command to install dependencies on RPM-based systems. See this example for Rocky Linux:
sudo yum install gcc-c++ make zlib-develOther types of Linux systems may require different packages.
Alpine Linux
Section titled “Alpine Linux”Choose an installation method:
Installing the APK package on Alpine Linux
Section titled “Installing the APK package on Alpine Linux”Download the .apk package, then install it using the appropriate package manager:
# Add public key to check signaturewget -P /etc/apk/keys/ https://apk.bell-sw.com/[email protected]# Install packagesudo apk add ./bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-linux-x64-musl.apkThe package is installed to /opt/bellsoft/liberica-vm-25.0.3-openjdk25/.
For scripting purposes, we recommend adding the ${NIK_HOME} environment variable that points to your Liberica Native Image Kit installation directory.
Installing the standalone NIK package on Alpine Linux
Section titled “Installing the standalone NIK package on Alpine Linux”-
To install Liberica NIK, download the
.tar.gzpackage:Terminal window wget https://download.bell-sw.com/vm/25.0.3/bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-linux-x64-musl.tar.gz -
Unpack it with the following command:
Terminal window export INSTALL_DIR=<your directory>tar -C $INSTALL_DIR -xzf bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-linux-x64-musl.tar.gzThis unpacks Liberica NIK to the selected directory. Either add
$INSTALL_DIR/bellsoft-liberica-vm-openjdk25-25.0.3/binto$PATH, or remember$INSTALL_DIR/bellsoft-liberica-vm-openjdk25-25.0.3as the$NIK_HOMEenvironment variable.
To uninstall Liberica NIK, simply remove this directory and unset the related environment variables.
Liberica NIK dependencies on Alpine Linux
Section titled “Liberica NIK dependencies on Alpine Linux”Several libraries are required for Liberica Native Image Kit on Alpine Linux. Install these libraries with the following command:
sudo apk add bash g++ make zlib-staticMicrosoft Windows
Section titled “Microsoft Windows”Choose an installation method:
Installing with the Microsoft Windows Installer package
Section titled “Installing with the Microsoft Windows Installer package”-
Double-click the Windows installation file you downloaded. The Liberica NIK Setup Wizard opens.
-
Click Next on the Welcome screen.
-
On the Custom Setup window, choose the features you need. Select a feature to see its description. In most cases, you can use the default setup. Click Disk Usage to see the available and required space on your disk. Click Next.
-
The package is ready to install. Press Install. If you see the User Account Control warning, verify the publisher (BELLSOFT) and click Yes.
-
After the installation is complete, click Finish to quit the Liberica NIK Setup Wizard.
If you want to install Liberica NIK silently, open the command line and run the following command:
msiexec /quiet /i bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-windows-amd64.msiLiberica NIK is installed to the C:\Program Files\BellSoft\LibericaNIK-25-OpenJDK-25 directory by default. For scripting purposes, we recommend adding the $NIK_HOME environment variable that points to your Liberica Native Image Kit installation directory.
Installing the standalone package on Microsoft Windows
Section titled “Installing the standalone package on Microsoft Windows”To install Liberica NIK as a standalone package on your computer, download the .zip package file and unpack it to a folder. You can also use Windows PowerShell to download and unpack the zip file as follows:
Invoke-WebRequest "https://download.bell-sw.com/vm/25.0.3/bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-windows-amd64.zip"Expand-Archive bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-windows-amd64.zip -DestinationPath .This unpacks Liberica NIK to the current directory. Either add the bin subdirectory to PATH, or remember this directory as the $NIK_HOME environment variable.
Liberica NIK dependencies on Windows
Section titled “Liberica NIK dependencies on Windows”Start the x64 Native Tools Command Prompt to allow native-image and other utilities to find the development tools and work from the command prompt.
Installing language packages
Section titled “Installing language packages”Language packages, such as JS, Python, Wasm, and others, can be downloaded from the Liberica Native Image Kit Download Center and installed as standalone components. To download a package:
-
Scroll down the page to the required OS.
-
Click the Package list and then click Additional Packages.
-
Click the language package you want to install.
-
Click the download link to the right of the Package list.
Once the download is complete, extract the package from the zip or tar.gz archive to install it as a standalone component. You can also add the <PACKAGE_DIR>/bin path to your PATH environment variable, where PACKAGE_DIR is the language package directory created after extraction.
For example, to install the Node.js package on a Linux OS, download it first and then extract it using the following command:
tar -zxf nodejs-java-openjdk25.0.3+12-25.0.3+1-linux-amd64.tar.gzThe nodejs-openjdk25-25.0.3 directory is created. You can use the extracted language pack by providing the path to its directory in commands as follows:
nodejs-openjdk25-25.0.3/bin/node --versionv22.22.0You can also add the path to the nodejs-openjdk25-25.0.3/bin subdirectory to the $PATH variable for the current terminal session if necessary:
export PATH=$<NODEJS_PACKAGE_DIR>/bin:$PATHVerifying downloaded files
Section titled “Verifying downloaded files”It is a good practice to verify the downloaded installation file by comparing its size on your drive to the size on the Downloads page.
A more advanced approach is to obtain the checksum of the downloaded file in a command-line interface and compare it to the one you can find next to the Liberica NIK link on the Downloads page. Check the OS-specific commands below.
To get the checksum of the downloaded file, use the following command:
shasum -a 1 bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-macos-amd64.dmgTo get the checksum of the downloaded file, use the following command. The installation file extension depends on the Linux version.
shasum -a 1 bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-linux-amd64.debTo get the checksum of the downloaded file in the command line, run the following command in Windows PowerShell. To run PowerShell, open the Start menu or press the Windows key + R, type powershell in the Run dialog box, and click OK.
(Get-FileHash .\bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-windows-amd64.msi -Algorithm SHA1).Hash