OpenJDK vs Oracle JDK and install for Debian based Linux Systems

0
271

Both OpenJDK and Oracle JDK are created and maintained currently by Oracle only.

OpenJDK and Oracle JDK are implementations of the same Java specification passed the TCK (Java Technology Certification Kit).

Most of the vendors of JDK are written on top of OpenJDK by doing a few tweaks to [mostly to replace licensed proprietary parts / replace with more high-performance items that only work on specific OS] components without breaking the TCK compatibility.

Many vendors implemented the Java specification and got TCK passed. For example, IBM J9, Azul Zulu, Azul Zing, and Oracle JDK.

Almost every existing JDK is derived from OpenJDK.

As suggested by many, licensing is a change between JDKs.

Starting with JDK 11 accessing the long time support Oracle JDK/Java SE will now require a commercial license. You should now pay attention to which JDK you’re installing as Oracle JDK without subscription could stop working.

How to install java11 on Debian9 /mint 19/ Ubuntu 18 ?

A-Install OpenJDK  from the the standard repository

With this easy command you can install  openjdk  in all  above systems

B-Install JDK from Oralce 

From your Terminal console

B1- Install Deb  file

B2-configure Java 11 as the default version on your system.

The version 11 has been slected now.

There are some other binaries  like  jar  and javac to set as default for JDK installation with  the bellow commands

C-1-Check now Your  Java version

C-2-Set Environment variables for Java applications

Vi /etc/profile.d/jdk11.sh

C-3-Load the settings  without a reboot

Please Enjoy and share

Spread the love
  • 12
    Shares

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.

LEAVE A REPLY

Please enter your comment!
Please enter your name here