Install Red Hat build of OpenJDK 17 by executing the following command: sudo yum install java-17-openjdk-devel Change the default Java provider by executing the following command:sudo update-alternatives --config java