...
Installing with package manager (apt)
...
(See https://
...
...
...
...
(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 | ||
---|---|---|
| ||
wget -qO - https://adoptopenjdkpackages.jfrogadoptium.ionet/adoptopenjdkartifactory/api/gpg/key/public | sudo apt-key add - |
2. Configure AdoptOpenJDK's apt repository
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
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 | ||||
---|---|---|---|---|
| ||||
sudo apt remove openjdk-8-jdk |
...
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...