Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the difference between different java JDK files: default-java , java-1.8.0-openjdk-amd64 , java-8-openjdk-amd64 , java-8-oracle

they are all in my /usr/lib/jvm/.. file in my ubuntu machine. Can someone explain the differences between these 4 files and why the file called java1.8.0_91 isn't considered a JDK? I came across these files while finding a JDK for android studio.

like image 481
hmoharra Avatar asked Jul 06 '16 23:07

hmoharra


People also ask

Is OpenJDK 1.8 the same as Java 8?

In short – 8 is product version number and 1.8 is the developer version number (or internal version number). The product is the same, JDK 8, anyways.

What is difference between JDK and OpenJDK?

The biggest difference between OpenJDK and Oracle JDK is licensing. OpenJDK is completely open source Java with a GNU General Public License. Oracle JDK requires a commercial license under Oracle Binary Code License Agreement. But there are many other differences within support and cost, too.

What is the difference between JDK 8 and JDK 11?

It is an open-source reference implementation of Java SE platform version 11. Java 11 was released after four years of releasing Java 8. Java 11 comes with new features to provide more functionality. Below are the features which are added in the four and a half years in between these two versions.

What is the difference between JDK 11 and JDK 17?

Java 17 is an LTS (Long Term Support) version just like Java 11. With Java 11 a new release cadence started. Java 11 came with support up to September 2023 and with an extended support up to September 2026. Also, with Java 11, the Oracle JDK was not free anymore for production and commercial use.


1 Answers

Most of these directories are symlinks to each other. You, probably, have two JDK/JRE installed: Open JDK and Oracle JDK. See here and here for difference between Open JDK/Oracle JDK, and between JDK and JRE. java1.8.0_91 is probably JRE, not JDK.

like image 183
Alexey Avatar answered Nov 15 '22 00:11

Alexey