Oracle JDK is the original version of Java and is fully maintained by Oracle, the developers of Java.īoth of these versions are officially recognized by Oracle. Both are also developed by Oracle, but OpenJDK has the addition of community contributions due to its open-source nature. However, starting with Java 11 the two options are now functionally identical as detailed by Oracle. The choice between which to install comes down to choosing the appropriate licensing for your circumstance. Option 1 - Installing the Default JRE/JDK Additionally, OpenJDK has the option to install the JRE separately, while OracleJDK comes packaged with its JRE. The easiest option for installing Java is to use the version packaged with Ubuntu. To install this version, first update the package index: By default, Ubuntu 22.04 includes Open JDK 11, which is an open-source variant of the JRE and JDK. If Java is not currently installed, you’ll see the following output: Next, check if Java is already installed: INSTALL OPENJDK 11 MANUALLY UPDATE Next, you’ll look at how to install Oracle’s official JDK and JRE. ![]() Oracle’s licensing agreement for Java doesn’t allow automatic installation through package managers. To install the Oracle JDK, which is the official version distributed by Oracle, you must create an Oracle account and manually download the JDK to add a new package repository for the version you’d like to use. Then you can use apt to install it with help from a third party installation script. Oracle JDK comes with the JRE included, so you don’t need to install that separately. The version of Oracle’s JDK you’ll need to download must match the version of the installer script. Locate the package for Jammy, as shown in the following figure: To find out which version you need, visit the oracle-java11-installer page. In this image, the version of the script is 11.0.13. ![]() In this case, you would need Oracle JDK 11.0.13. Your version number may vary depending on when you’re installing the software.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |