It may take few minutes to install the packages depending on your speed of your network connection. If you intend to install other package versions then you may opt one. Why did we choose to install openjdk-11-jre not other packages like openjdk-12-jre? The answer to the question is pretty easy, openjdk-11-jre is currently the package supported by Ubuntu distribution. To do so, run the following in the terminal – sudo apt install openjdk-11-jre Install OpenJDK Java Runtime Environment (JRE)įirstly, we would install Java Runtime Environment (JRE) to run Java written applications / programs. In case, if you don’t one then contact your system administrator for assistance. The following operations would require superuser privileges. Sudo apt install openjdk-13-jre-headless # version 13~13-0ubunt1 Sudo apt install openjdk-12-jre-headless # version 12.0.1+12-1 Sudo apt install openjdk-8-jre-headless # version 8u212-b03-0ubuntu1.19.04.2 Sudo apt install default-jre # version 2:1.11-71, or Command 'java' not found, but can be installed with: We have been using Ubuntu 19.04, if you are on a different release of Ubuntu then you may see different versions in the output. If Java is not installed, then it will return with the following output. Therefore, run the following in terminal – java -version Also, you need to first check whether you have JDK/JRE already installed. Both the packages are available in standard Ubuntu repository. JRE package itself comes bundled with JDK. In case, if you plan on to install JDK, then you wouldn’t have to install JRE separately. On the other hand, to develop Java applications you need to install Java Development Kit. Here, JRE is an acronym for Java runtime and JDK is an acronym for Java Development Kit.įor those who just want to run Java applications / programs can install Java runtime. In this article, we would discuss how to install both OpenJDK Java runtime (JRE) & Development Kit (JDK) in Ubuntu 19.04 release.
0 Comments
Leave a Reply. |