4.7.5 -> 4.8.0 Java

What is the procedure for migration from Jre8 to Jdk11 for windows server?
This link is correct? Java Downloads | Oracle
Stop Openfire, uninstall jre8, install jdk21, upgrade Openfire - correct?

I’d like to know this as well. Though my server is CentOS 7. I run # java -version and it says:
openjdk version “11.0.13” 2021-10-19 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.13+8-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.13+8-LTS, mixed mode, sharing)
And when I run sudo rpm -Uvf openfire-4.8.0-1.noarch.rpm I get:
error: Failed dependencies:
java >= 1:11.0.0 is needed by openfire-4.8.0-1.noarch

Any advice?

Getting the JRE requirement right within the Openfire RPM has been a source of trouble. Just install it via rpm -Uvh --nodeps openfire...rpm

Updated the server, everything works, thanks to the developers :+1:

The updated worked fine for me as well, but the unsatisfied dependency remains for the package manager.

Running transaction check
ERROR with transaction check vs depsolve:
java >= 1:11.0.0 is needed by (installed) openfire-4.8.0-1.noarch
** Found 1 pre-existing rpmdb problem(s), ‘yum check’ output follows:
openfire-4.8.0-1.noarch has missing requires of java >= (‘1’, ‘11.0.0’, None)

The openfire RPM packages specifies package dependency as following:

Requires: java >= 1:11.0.0

checking the versions provided by java-11-openjdk package no “java” version tag is provided:

> rpm -qp --provides java-11-openjdk-
java-11 = 1:
java-11-openjdk = 1:
java-11-openjdk(x86-64) = 1:
jre-11 = 1:
jre-11-openjdk = 1:

Running the same command for java-1.8.0-openjdk package the version tag “java” exists:

> rpm -qp --provides java-1.8.0-openjdk-
java = 1:
java-1.8.0 = 1:
java-1.8.0-openjdk = 1:
java-1.8.0-openjdk(x86-64) = 1:
java-fonts = 1:
java-openjdk = 1:
jre = 1:
jre-1.8.0 = 1:
jre-1.8.0-openjdk = 1:
jre-openjdk = 1:

To fix the problem I think it is sufficient to change openfire.spec as following:

Requires: java-11 >= 1:11.0.0

I think you need to install the java-11-openjdk-headless package, which satisfies Openfire

For me it also applies for the headless package java-11-openjdk-headless which doesn’t provide any “java”. This is why I faced the problem during upgrade/installation and had to ignore dependencies with --nodeps.

> rpm -qp --provides java-11-openjdk-headless-
java-11-headless = 1:
java-11-openjdk-headless = 1:
java-11-openjdk-headless(x86-64) = 1:
jre-11-headless = 1:
jre-11-openjdk-headless = 1:

I think this is RHEL7 issue as on RHEL9

dnf whatprovides java-11
java-11-openjdk-1: : OpenJDK 11 Runtime Environment
Repo        : appstream
Matched from:
Provide    : java-11 = 1: