Upgrading to Java11 on Amazon Linux 2
by Sebastien Mirolo on Wed, 16 Nov 2022A latest update of Jenkins (version 3.6) triggered an required upgrade to Java 11. The process to upgrade from Java8 to Java11 on Amazon Linux2 is pretty straightforward.
Terminal
$ sudo amazon-linux-extras install java-openjdk11 $ java -version openjdk version "1.8.0_332" OpenJDK Runtime Environment (build 1.8.0_332-b09) OpenJDK 64-Bit Server VM (build 25.332-b09, mixed mode) $ sudo alternatives --config java $ java -version openjdk version "11.0.16" 2022-07-19 LTS OpenJDK Runtime Environment (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 11.0.16+8-LTS) OpenJDK 64-Bit Server VM (Red_Hat-11.0.16.0.8-1.amzn2.0.1) (build 11.0.16+8-LTS, mixed mode, sharing) $ sudo systemctl restart jenkins.service
Et Voila!
More to read
If you are looking for related posts, Continuous builds with Jenkins and Nginx, Jetty and Jenkins are good reads.
More technical posts are also available on the DjaoDjin blog. For fellow entrepreneurs, business lessons learned running a subscription hosting platform are also available.