Wanted to pick someone else’s brain on an issue I’m having and getting nowhere with.
We have an older Linux server in our environment and I am looking to patch our openjdk to the Latest versions but cannot seem to wrap my head around the process.
We are on Centos 7, running openjdk 11.0.14, wanting to move up to 11.0.15 and eventually beyond once we can test that our applications are stable with each major jump.
yum list available java* only displays up to 11.0.14 then jumps straight to 17.0.2 however I just want to patch to the highest v11.
Java -version produces:
openjdk version "11.0.14.1" 2022-02-08 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.14.1+1-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.14.1+1-LTS, mixed mode, sharing)
Initially I thought about doing an alternate install so that I can switch between versions as needed so I downloaded 11.0.15 from oracle and extracted it into the current install location and ran the alternatives — install command however it fails with the message: the primary link for Java must be usr/bin/Java.
When I run “which Java” I get bin/Java but the symbolic link is under usr/lib/Java.
I'm not sure how to proceed, should I remove the previous version before proceeding? I am also not certain about if I am upgrading with correct openjdk verison to avoid any issues. Do I get the download from Oracle or do I use opendjk archives?