

Ubuntu 20.04’s default repository included Java 17. You can do this by running the following commands: apt-get updateĪpt-get upgrade Install OpenJDK 17 from Ubuntu 20.04 Repository Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. You will need to replace ‘ IP_Address‘ and ‘Port_number‘ with your server’s respective IP address and SSH port number.

Log in to the Server & Update the Server OS Packagesįirst, log in to your Ubuntu 20.04 server via SSH as the root user: ssh -p Port_number

