Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Ubuntu OpenJDK 8 support ends after ended on April 2021*.  It is encouraged to migrate from the Ubuntu OpenJDK to an alternative OpenJDK distribution like AdoptOpenJDK Eclipse Temurin 8 from Adoptium which will be supported until 2026.
(* Despite the end-of-support declaration, Ubuntu updated OpenJDK 8 to the patch release 8u312 on 2021-12-17. It is unclear whether there will be further updates.)

This document describes two ways, manual or with package manager, to install AdoptOpenJDK Eclipse Temurin 8 on your Ubuntu system.

Info

These instructions require X-Road version 6.26.0 or later.

Installing with package manager (apt)

Info

These instructions refer to the old AdoptOpenJDK packages and will be updated once the new Eclipse Temurin packages are available.
See https://github.com/adoptium/installer/issues/330


(See https://adoptopenjdk.net/installation.html?variant=openjdk8&jvmVariant=hotspot#linux-pkg)

...

Code Block
title/etc/xroad/services/local.conf
JAVA_HOME=/usr/lib/jvm/adoptopenjdk-8-hotspot-jre-amd64

Installing manually

Note that manual installs are not automatically updated.
1. Download the tar (Java 8) from See also: https://adoptopenjdkadoptium.net/releasesinstallation.html?variant=openjdk8&jvmVariant=hotspothotspot#x64_linux-jre

For example installing latest Java 8 into the /opt directory (uses the Adoptium API to get the link to latest version available)

Code Block
languagebash
cd /opt 
wget -O temurin-8-jre.tar.gz https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jre_x64_linux_hotspot_8u282b08.tar.gz
tar xvzf OpenJDK8U-jre_x64_linux_hotspot_8u282b08.tar.gz
rm OpenJDK8U-jre_x64_linux_hotspot_8u282b08api.adoptium.net/v3/binary/latest/8/ga/linux/x64/jre/hotspot/normal/eclipse
tar xvf temurin-8-jre.tar.gz
# take note of the output directory, e.g ./jdk8u312-b07-jre
rm temurin-8-jre.tar.gz

2. Set the Java home path in /etc/xroad/services/local.conf

Code Block
title/etc/xroad/services/local.conf
JAVA_HOME=/opt/jdk8u282jdk8u312-b07-b08jre 

Optional

...

steps

...

Removing the old Java distribution

Optional step for all install methods if you wish to remove the old jdk firstNote that if you used the manual installation method, removing the Ubuntu OpenJDK package is not possible since the security server depends on it. You need to be sure that it is safe to remove the old Java distribution e.g. that it is not used by any other software you might have installed.

If Java was installed by package manager, remove it with the package manager

...

If you are removing Java manually, you need to locate it first. Checking from these directories might help
/usr/lib/jvm/
/opt/
/usr/local/


Filter by label (Content by label)
showLabelsfalse
max5
spacesXRDKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "XRDKB"
labelskb-how-to-article

...