Skip to content

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.

Choose an installation method:

  1. To run the installer, double-click the file you have downloaded.

  2. Double-click the pkg icon to open the Install Liberica NIK Wizard.

  3. Click Continue on the Welcome screen.

  4. Optionally, you can change the installation location. Press Install to proceed.

  5. Confirm the new software installation. The files will start copying immediately.

  6. 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/.

Install the necessary tools with the following command:

Terminal window
xcode-select --install

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:

  1. Scroll down the page to the required OS.

  2. Click the Package list and then click Additional Packages.

  3. Click the language package you want to install.

  4. 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:

Terminal window
tar -zxf nodejs-java-openjdk25.0.3+12-25.0.3+1-linux-amd64.tar.gz

The 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:

Terminal window
nodejs-openjdk25-25.0.3/bin/node --version
v22.22.0

You 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:

Terminal window
export PATH=$<NODEJS_PACKAGE_DIR>/bin:$PATH

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:

Terminal window
shasum -a 1 bellsoft-liberica-vm-openjdk25.0.3+12-25.0.3+1-macos-amd64.dmg