Java Upgrade 21.x (Ubuntu)
Prerequisites
Stop Apache Tomcat Services
sudo systemctl stop tomcat.servicesudo systemctl stop tomcat-ui sudo systemctl stop tomcat-jobsudo systemctl status tomcat
Verify Current Java Version
Back Up Existing cacerts File
Update System Packages
Install Java 21
Verify Installed Java Versions
Set Java 21 as the Default Version
Verify Java Upgrade
Restore cacerts File
Copy Backup cacerts File
Update File Permissions
Update File Ownership
Verify Restored File
Start Apache Tomcat Services
Last updated
Was this helpful?








