When you have multiple Java packages in system, you can select the desired Java version by using following command. Sudo apt install openjdk-8-jdk openjdk-8-jre Sudo apt install openjdk-11-jdk openjdk-11-jre Sudo apt install openjdk-13-jdk openjdk-13-jre First of all, run the following command to check the current Java version: java -version openjdk version '' OpenJDK Runtime Environment ( build 1.8. Similarly you can install other OpenJDK version in same manner. Sudo apt install openjdk-14-jdk openjdk-14-jre You can see in video which we have posted in this article, we can find the OpenJDK version list by searching through apt search package-name command.Īt the time of writing this post, OpenJDK-14 was latest stable version. Fedora, Oracle Linux, Red Hat Enterprise Linux, etc. If you want to develop Java programs then install the openjdk-7-jdk package. Similarly to install OpenJDK we will use the apt command as described in above syntax. On the command line, type: sudo apt-get install openjdk-7-jre The openjdk-7-jre package contains just the Java Runtime Environment. To install any package in Ubuntu through apt command is very simple. Watch this video, it will show how to search OpenJDK packages in Ubuntu. Just read the output and find the desirable package which you want to install. Search available OpenJDK packages in apt repoįirst we will search in our Ubuntu system how many OpenJDK version is available in Ubuntu repositories.Īfter running above command, it will show N number of package list. Only thing you have to do is just read this post carefully and apply. We have inline the steps which are generic in all Ubuntu version. JRE (Java Runtime Environment) is require to run Java programmes only. JDK (Java Development Kit) is used for development purpose, it has libraries, development tools ,debugging tools and private JVM. Java ME (Micro Edition) Difference between JDK and JRE Java comes with three editions, these are –ģ. It was actually initiated by Sun Microsystem. OpenJDK is a free and open source product implements Java SE which is currently manage by Oracle Developers. The latest releases recommended for use in production are listed below, and are regularly updated and supported by the Adoptium community. Temurin is available for a wide range of platforms and Java SE versions. In this post, to install Java we will use the OpenJDK package. Eclipse Temurin is the open source Java SE build based upon OpenJDK. The Java was first developed in Sun Microsystem (Now acquired by Oracle). It is cross platform and widely use in developing applications. Java is a class based, object oriented programming language.
0 Comments
Leave a Reply. |