We would require the 11.0.7 version of Oracle JDK in this case. The script version is 11.0.7 on this page. We should visit a page, i.e., 'oracle-java11-installer' for finding out which release we need. We will need to install must match the release of the installer script of the JDK version of Oracle. Then, we can apply apt for installing it with the help of the third-party installation script. We should create an account of Oracle and download the JDK manually for adding any new package repository for the release we had like to use for installing the Oracle Java Development Kit which is the official release shared by Oracle. The licensing agreement of Oracle for Java does not permit automatic installation from the package manager. Next, let's see how to install the official JDK and JRE of Oracle. The 20.04 version of Ubuntu by default includes the 11 version of OpenJDK and it is an open-source version of the JDK and JRE.įirst, we need to update the index of the package for installing this version. One of the easiest options to install Java is to apply the version which is packaged using Ubuntu. The 20.04 server set up of Ubuntu by following the 20.04 initial server setup guide of Ubuntu including a non-root sudo user and a firewall. The Java Development Kit contains the Java Runtime Environment and debugging/development tools as well as libraries mandatory for building Java applications. The Java Runtime Environment is composed of the Java Virtual Machine, binaries, and classes that permit us to execute Java programs. The repositories of Ubuntu 20.04 (default) contain two packages of OpenJDK, Java Development Kit, and Java Runtime Environment. When we are finished, we will be able to apply the JDK for developing software or using the Java Runtime for running software. We will then choose the release we wish to use for our projects. We will install OpenJDK and the official JDK as well from Oracle. In this article, we will install many releases of Java Development Kit (JDK) and Java Runtime Environment (JRE) using 'apt'. JVM (Virtual Machine of Java) and Java are needed for various types of software including Jenkins, Cassandra, Glassfish, Jetty, and Tomcat.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |