Versions Compared

Key

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

...

Installing with package manager (apt)

...

(See https://

...

blog.

...

adoptium.net/

...

2021/

...

(See https://adoptopenjdk.net/installation.html?variant=openjdk8&jvmVariant=hotspot#linux-pkg12/eclipse-temurin-linux-installers-available/)

1. Import the AdoptOpenJDK repository GPG key

Code Block
languagebash
wget -qO - https://adoptopenjdkpackages.jfrogadoptium.ionet/adoptopenjdkartifactory/api/gpg/key/public | sudo apt-key add -

2. Configure AdoptOpenJDK's apt repository

Code Block
languagebash
echo "deb https://adoptopenjdkpackages.jfrogadoptium.ionet/adoptopenjdkartifactory/deb $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/adoptopenjdkadoptium.list

For example, if you are running Ubuntu 20.04 (Focal Fossa) the above command would be equivalent to:
echo "deb https://adoptopenjdkpackages.jfrogadoptium.ionet/adoptopenjdkartifactory/deb focal main" | sudo tee /etc/apt/sources.list.d/adoptopenjdkadoptium.list

3. Install the Java runtime environmentpackage (currently only full JDK is available)

Code Block
languagebash
sudo apt update && sudo apt install adoptopenjdktemurin-8-hotspot-jrejdk

4. Check the installation path.

Code Block
dpkg -L adoptopenjdktemurin-8-hotspot-jrejdk | grep '/bin/java$'

In this case it is /usr/lib/jvm/adoptopenjdktemurin-8-hotspot-jre-amd64jdk

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

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

Installing manually

Note that manual installs are not automatically updated.
See also: https://adoptium.net/installation.html?variant=openjdk8&jvmVariant=hotspot#x64_linux-jre

...

Note that if you used the manual installation method, removing the Ubuntu OpenJDK package is not possible since because the central/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

Code Block
languagebash
titleUBUNTU – apt
sudo apt remove openjdk-8-jdk

...


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

...