

Sudo apt-get update & sudo apt-get upgrade In Shell as proof, how to install java 11 jdk on ubuntu 20.04 code sample In Shell, set java version for ubuntu 20.04 code sample Other helpful code examples for installing Java on Ubuntu 20.04 Verify the installation by visiting in your web browser. To install Apache Tomcat 10, run the command Follow the below steps to install Apache Tomcat 10 on Ubuntu 20.04: Verify the version by running the commandĪpache Tomcat is an open-source web server and servlet container.

Follow the below steps to switch between Java 8 and Java 11: It is possible to switch between Java 8 and Java 11 on Ubuntu 20.04. Switch between Java 8 and Java 11 on Ubuntu 20.04 Verify the installation by running the command Follow the below steps toĭownload the Oracle Java package from the official website.Įxtract the package and move it to the /usr/local/java directory.Ĭonfigure the environment variables by adding the following lines to the /etc/environment file: Oracle Java is not available in the Ubuntu 20.04 default repository.
