What are the advantages of installing Eclipse Temurin OpenJDK in place of OpenJDK Deb Package on Debian?

Viewed 3685

I have on my Debian 11 Bullseye these JDK installed :

sudo update-java-alternatives -l
java-1.11.0-openjdk-amd64      1111       /usr/lib/jvm/java-1.11.0-openjdk-amd64
java-1.8.0-openjdk-amd64       1081       /usr/lib/jvm/java-1.8.0-openjdk-amd64

I want to switch to OpenJDK 17 and would to know if the Eclipse Temurin OpenJDK 17 is preferable to install instead of deb OpenJDK 17 package? NB: Temurin advantages according to Adoptium are :

supports high-quality, TCK certified runtimes and associated technology for use across the Java™ ecosystem

2 Answers

As a rule of thumb, just stick with what the official Debian repositories provide to be sure to receive regular updates and more important: Security updates released by the Debian project.

Before you resort to unpack tarballs into whatever location you should watch out for a maintained repository.

In case of Adoptium you might want to add their official repository that has been published on 2021-12-30.
https://blog.adoptium.net/2021/12/eclipse-temurin-linux-installers-available/

wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public \
    | apt-key add -

echo "deb https://packages.adoptium.net/artifactory/deb bullseye main" \
    > /etc/apt/sources.list.d/adoptium.list

apt update && apt install temurin-17-jdk

TCK certification might be worth only if you intend to ship commercial software to industry customers which insist on it.

lwjgl had issues with non-Adoptium JVMs from 11 onward. They seem to have fixed it with version 3.

As for this writing, JOGL also has this issue but does not have a fix AFAIK.

Related