Skip to content

Liberica NIK 21: Installation Guide

This document provides installation instructions for Liberica Native Image Kit (NIK) 23.1.6+1 (21.0.6+10) 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 23.1.6 is installed to the /Library/Java/LibericaNativeImageKit/liberica-vm-23.1.6-openjdk21/ 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-23.1.6-openjdk21/Contents/Home/.

Except for the Core version (which comes bundled with the native image plugin and does not allow the installation of additional components), all packages of Liberica Native Image Kit contain a component updater called gu. You can use it to install or update Liberica NIK plugins or add support for additional languages in the distribution.

Open the terminal and type:

Terminal window
$NIK_HOME/bin/gu available

You’ll see a list of available languages:

Downloading: Component catalog from download.bell-sw.com
ComponentId Version Component name Stability Origin
-----------------------------------------------------------------------------
icu4j 23.1.6 ICU4J Supported download.bell-sw.com
js 23.1.6 Graal.js Supported download.bell-sw.com
llvm 23.1.6 LLVM Runtime Core Supported download.bell-sw.com
llvm-toolchain 23.1.6 LLVM.org toolchain Supported download.bell-sw.com
nodejs 23.1.6 Graal.nodejs Supported download.bell-sw.com
python 23.1.6 GraalVM Python Experimental download.bell-sw.com
R 23.1.6 FastR Experimental download.bell-sw.com
regex 23.1.6 TRegex Supported download.bell-sw.com
ruby 23.1.6 TruffleRuby Experimental download.bell-sw.com
wasm 23.1.6 GraalWasm Experimental download.bell-sw.com

Execute $NIK_HOME/bin/gu install [language] to install a specific language. For example, $NIK_HOME/bin/gu install python.

This can also be executed manually:

Terminal window
curl -O https://download.bell-sw.com/vm/23.1.6/python-installable-openjdk21.0.6+10-23.1.6+1-macos-amd64.jar
$NIK_HOME/bin/gu -L install python-installable-openjdk21.0.6+10-23.1.6+1-macos-amd64.jar

Install the necessary tools with the following command:

Terminal window
xcode-select --install

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-openjdk21.0.6+10-23.1.6+1-macos-amd64.dmg