skip to Main Content

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


  1. 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.

    Login or Signup to reply.
  2. 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search