Install JAVA 14/13 (OpenJDK) on Ubuntu 20.04/19.04
In this post we will give you information about Install JAVA 14/13 (OpenJDK) on Ubuntu 20.04/19.04. Hear we will give you detail about Install JAVA 14/13 (OpenJDK) on Ubuntu 20.04/19.04And how to use it also give you demo for it if it is necessary.
Java 14 has new features and security updates, you can get more information of what’s new in Java 14 from this link
If you are under Ubuntu 20.04 or Ubuntu 19.04, you can easily install Java 13 or Java 14 using OpenJDK.
Installing OpenJDK Java 13/14 on Ubuntu 20.04
By default the Ubuntu 20.04 LTS Focal Fossa Linux offers multiple versions of Java OpenJDK from a standard Ubuntu repository.
Step 1: Getting the Available Versions of OpenJDK
Let’s get started by listing all the available packages. Open your terminal and run the following command:
$ apt search openjdk
Step 2: Installing OpenJDK/Java 13
Next, you can install OpenJDK 13 using the following command:
$ sudo apt install openjdk-13-jdk
Step 2: Installing OpenJDK/Java 14
If you want to install OpenJDK 14 using the following command:
$ sudo apt install openjdk-14-jdk
Installing Java 8 on Ubuntu 19.04
To install OpenJDK 8 in Ubuntu 19.04, you have two methods:
- Download the OpenJDK 8 package manually from its Ubuntu 18.10 repository,
- Use OpenJDK builds PPA.
Installing Java 8 (OpenJDK) Using Ubuntu 18.10 Repository:
Let’s start by seeing how you can install OpenJDK 8 via Ubuntu 18.01 repository
First, you need to download the following packages for 64-bit systems:
For 32-bit systems check this link.
Next, you siply need to use the dpkg tool to install these packages. Open your terminal, go to where you have downloade the packages and run the following command:
$ sudo dpkg -i ./openjdk-8-*.deb
If the setup fails due to dependency problems. Simply run the following command:
$ sudo apt -f install
That’s it! You now have installed Java 8 on your Ubuntu 19.04 system using Ubuntu 18.04 repository.
Installing Java 8 (OpenJDK) In Ubuntu 19.04 via a PPA
You can also install OpenJDK 8 via a PPA. Open your terminal and run the following command:
$ sudo add-apt-repository ppa:openjdk-r/ppa
You’ll be prompted for your sudo password. Enter it and hit Enter.
Next, you can simply install Java 8 (OpenJDK) by running the following commands:
$ sudo apt update$ sudo apt install openjdk-8-jdk openjdk-8-jre
So we have seen how you can install Java 8 (OpenJDK 8 ) on your Ubuntu 19.04 system using packages from Ubuntu 18.04 and a PPA.
Hope this code and post will helped you for implement Install JAVA 14/13 (OpenJDK) on Ubuntu 20.04/19.04. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs