Follow the article to change default Java version. Then, how would we let our system know which Java version to choose. What if, we have got two different Java versions installed on the same machine. In conclusion, we have discussed how to install OpenJDK JRE / JDK in Ubuntu 20.04 LTS release. Although you may choose to install other versions 8, 13 and 14 as well. This is the current supported version in Ubuntu distribution. Install the latest version of OpenJDK by using: sudo apt install default-jdk. Update the system repository with: sudo apt update. Manually installing Maven is more complex than using the apt command but offers more flexibility when choosing which version to install. OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-3ubuntu1, mixed mode, sharing)Īlso, we would like to mention here that we have installed version 11.0.7 of OpenJDK JRE / JDK. Install the Latest Release of Maven on Ubuntu. OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-3ubuntu1) It would return with the output – openjdk version "11.0.7" Issue the following in terminal – java -version Lastly, to verify the Java version installed. It will install any related dependencies. Then, to install OpenJDK Development Kit – sudo apt install openjdk-11-jdk This ensures we get to install the latest version of the package – sudo apt update Therefore, first update the Ubuntu repository. Install OpenJDK Development Kit (JDK)Īs already discussed above, the packages are already available in standard Ubuntu repository. This will install the necessary dependencies. Now, to install OpenJDK Java Runtime Environment – sudo apt install openjdk-11-jre Hence, issue the following in terminal – sudo apt update Therefore, we need to update the Ubuntu repository to make the latest version of package available. Since the package is already available in standard Ubuntu repository. Install OpenJDK Java Runtime Environment (JRE) In case you don’t have one, then contact your System Administrator for assistance. Note: Following operations would require you to have superuser privileges. Also, we would install version 11 of OpenJDK JRE / JDK. We would first discuss OpenJDK JRE installation steps, then OpenJDK Development Kit. OpenJDK Development Kit would install JRE by default. We would like to clarify one thing here, it is not necessary to install JRE separately when we opt for JDK. But, for ones who would like to build and execute Java applications then they must opt Java Development Kit (JDK). JDK or JRE we need to install.įor those users, who would just want to run Java applications then Java Runtime Environment (JRE) would suffice. Before that, it is important to know which package i.e. In this article, we would discuss how to install OpenJDK JRE / JDK in Ubuntu 20.04 LTS release. OpenJDK and the one developed by Oracle Corporation are two most popular packages available to build/execute java programs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |