All about developing with Oracle Java SE Development Kit (JDK) on Oracle Linux
Oracle Linux maintaines different repositories for different audiences:
If you have access to the Premier or OCI repositories we recommend using those over yum.oracle.com.
Oracle Cloud Infrastructure users are entitled to use Oracle JDK for running Java applications in OCI. Supported JDK versions are available through the Oracle Linux OCI Included (`ol<version>_oci_included`) yum mirror available within OCI. This repository offers all supported JDK versions for the lifetime of each release.
Oracle Linux images listed in the OCI Console have this yum repository configured and enabled by default. If you create your own Oracle Linux base image follow the Oracle Cloud Infrastructure documentation for enabling this repository on your OCI Oracle Linux instance.
Customers with Oracle Linux or Oracle VM Support agreements that rely on Oracle Linux, on premise or in other clouds, have access to the Unbreakable Linux Network which also provides all supported JDK releases for the lifetime of the release.
Follow the Oracle Linux ULN instructions to subscribe to the appropriate JDK channel. You will need your Customer Support Identifier (CSI).
Oracle Linux users not running in OCI and that do not have a valid CSI for Linux or Oracle VM can use the public Oracle Linux Yum repositories.
The yum.oracle.com repositories provide releases and updates to JDK versions for a more limited time; only while those releases are being offered under the Oracle No-Fee Terms and Conditions (NTFC) license.
This means that the yum.oracle.com repositories will only have updates to the most recent JDK releases In the case of JDK releases that offer Long Term Support (LTS), updates will only be provided until one year after the LTS is superseded by a newer LTS releases.
At any point in time, Oracle provides several versions of the Java SE Development Kit (JDK).
Some releases do not offer Long-term Support (non LTS releases). Those releases receive updates for only 6 months until they are superseded by a newer JDK release (e.g. JDK 23 and 24). On other versions, Oracle offers Long-Term Support (LTS) with at least 8 years of update releases (e.g. JDK 11, 17, and 21).
Newer Releases and their updates are offered under the Oracle No-Fee Terms and Conditions (NTFC) license which was introduced in 2021 and are available to everyone.
Updates to LTS releases are offered under the NFTC license only until a year after the release of a newer Long-term Support Release (e.g. JDK 17 reaches end-of-permissive licensing in September of 2024, a year after the release of JDK 21 LTS).
Updates to LTS releases that have been superseded by a newer LTS for more than a year, are offered under the Java SE OTN license and are meant for Oracle Java SE Customers, to run Oracle Products, for personal use, and for development.
Releases under the Java SE OTN License require users to have an Oracle account, to accept the license terms before download, and are therefore not offered through the public Oracle Linux Yum repositories (users can still download releases under the Java SE OTN terms from www.oracle.com/javadownload.
The table below illustrates which JDK releases are offered from which repositories and how long we plan to provide updates through that repository.
JDK Release Version |
Updated on yum.oracle.com for everyone until |
Update on oci_included and ULN for customers until |
---|---|---|
JDK 23 | Mar 2025 | Mar 2025 |
JDK 22 | Not Available | Sept 2024 |
JDK 21 LTS | Sept 2026 | Sept 2031 |
JDK 17 LTS | Not Available | Sept 2029 |
JDK 11 LTS | Not Available | Jan 2032 |
JDK 8 LTS | Not Available | Dec 2030 |
For a complete list of supported releases and their updates visit https://www.java.com/releases/
Oracle offers JDK NFTC repositories for Oracle Linux 9 and 8, in both cases, for x86_64 and aarch64 systems.
To enable the Oracle JDK NFTC releases repository run:
$ sudo dnf install oracle-java-jdk-release-el*
Once the repo is enabled you will be able to install all the currently available JDK versions offered under the No-Fee Terms and Conditions (NFTC) License.
Oracle offers a headless and a headful (which requires the headless versions and adds headful components) versions of the JDK.
e.g. to install JDK 21 headless run:
$ sudo dnf install jdk-21-headless
or to install the headful option:
$ sudo dnf install jdk-21-headful
if you have previously installed a JDK version, and new update release has been published, you can update to the latest version -for as long as updates are updated in the repository- by running
$ sudo dnf update jdk-21-headful
Note that users of the OCI Included and ULN repositories will continue to receive updates for JDK LTS releases for at least 5 more years after those JDK LTS releases stop receiving updates in the public yum.oracle.com repositories