Skip to content

Using Liberica JDK in Your IDE

To develop Java applications in your development environment or IDE, you need a Java SDK (JDK). A JDK is a software package that contains libraries, tools for developing and testing Java applications (development tools), and tools for running applications on the Java platform (Java Runtime Environment, JRE).

Liberica JDK is a secure and reliable tool for application development that is compatible with the broadest range of system configurations on the market. You can use Liberica JDK in your IDE to create Java applications.

In this document, you will learn how to use Liberica JDK in your IDE. For the general installation instructions, see the Liberica JDK Installation Guide.

It depends on your needs which Liberica JDK version to choose for your project.

  • If you develop from scratch, we recommend using the latest Liberica JDK LTS builds, which are guaranteed to have prompt bug fixes, security updates, and other improvements as needed. We keep supporting LTS Liberica JDK builds even after the corresponding versions of OpenJDK are no longer supported. For more information, see Support Roadmap for Liberica JDK.
  • If you run older software, stick to the version it was developed for. In case your app is based on a version that is no longer supported, download the safest build of this version and get ready to upgrade your app, because your data is no longer safe.
  • If you plan to use the latest language features, use the latest versions and builds of Liberica JDK. We release new builds concurrently with Oracle JDK. In addition, we put out security patches and customer fixes on a regular basis.

JFX is an open-source platform containing graphics and media tools for developing and deploying rich client applications. We deliver a special flavor of Liberica JDK (Full version) containing LibericaFX — our instance of OpenJFX. Liberica for Embedded also comes with LibericaFX, enabling the developers to create GUIs for embedded systems.

If you plan to create desktop, web, mobile, or embedded systems applications with JFX, consider the following:

  • If you develop your JavaFX applications using a build system, such as Maven, download the Standard version of Liberica JDK. Specify the modules and the versions you want in the pom.xml file, and the build system will download the required modules, including the native libraries for your platform.
  • If you want to use the JFX SDK to develop your applications, download and install the Full version of Liberica JDK that contains LibericaFX.

IntelliJ IDEA supports a wide range of Java versions for developing applications. See Supported Java versions and features for details.

Specifying Liberica JDK as the SDK for all new projects

Section titled “Specifying Liberica JDK as the SDK for all new projects”

You can set up IntelliJ IDEA to use Liberica JDK for all new projects.

  1. Start IntelliJ IDEA and click File > New Project Setup > Structure.

  2. Select Project under Project Settings in the left pane.

    The right pane now contains project options including the selected SDK for all new projects.

  3. Click the SDK list and select the required Liberica JDK version.

    • If Liberica JDK is installed on your computer, but not defined in the IDE, either select it from the detected SDKs, or click Add SDK > JDK, and specify the path to the JDK home directory, for example, C:\Program Files\BellSoft\LibericaJDK-21.
    • If Liberica JDK is not installed, you can download and install it right in the New Project window as follows:
      1. Click the JDK list and select Add SDK > Download JDK.
      2. In the Download JDK dialog box, specify a version and vendor, and change the installation path if necessary.
      3. Click Download.

If you have not specified Liberica JDK as an SDK for all new projects, you can select Liberica JDK in your new Java project while creating it in the IDE.

  1. Start IntelliJ IDEA and click File > New > Project.

  2. On the New Project screen, specify the name of your project and language (Java), and select Liberica JDK in the JDK list. The list contains the default JDK as well as detected JDKs installed on your computer.

    • If Liberica JDK is already defined in IntelliJ IDEA, select it from the SDK list.
    • If Liberica JDK is installed on your computer, but not defined in the IDE, either select it from the detected SDKs, or click Add SDK > JDK, and specify the path to the JDK home directory, for example, C:\Program Files\BellSoft\LibericaJDK-21.
    • If Liberica JDK is not installed, you can download and install it using the Add SDK > Download JDK option.

Specifying Liberica JDK for an existing project

Section titled “Specifying Liberica JDK for an existing project”

Follow the next steps to use Liberica JDK in your existing Java project.

  1. Start IntelliJ IDEA and open your Java project.

  2. Select the project and click File > Project Structure.

  3. Select Project under Project Settings in the left pane.

    The right pane now contains your project options including the selected SDK.

  4. Click the SDK list and select the required Liberica JDK version.

    If Liberica JDK is not installed, you can download and install it using the Add SDK > Download JDK option.