Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I see open JDK 1.8 instead of Java 8?

Tags:

Ehen I am checking my Java version like this:

/rhel/ java -version, 

I am not sure why I see openjdk version 1.8.0 runtime environment build ..., but I was expecting to see java 8.

Why is that?

like image 225
THEGreatGatsby Avatar asked Dec 05 '18 23:12

THEGreatGatsby


People also ask

Is JDK 1.8 is same as java 8?

8 and java 8?? http://www.oracle.com/technetwork/java/javase/jdk8-naming-2157130.html Java SE Development Kit 8, also known as JDK 8, has the version number 1.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.

Is OpenJDK version same as java version?

OpenJDK is a free and open-source implementation of the Java SE Platform Edition. It was initially released in 2007 as the result of the development that Sun Microsystems started in 2006. We should emphasize that OpenJDK is an official reference implementation of a Java Standard Edition since version SE 7.

Does OpenJDK support java 8?

Yes, the Red Hat's build of OpenJDK version 8 for RHEL and Windows includes Java Web Start support.

How do I know if I have java 8 JDK installed?

Open command prompt and enter “java –version”. If installed version number is displayed.


1 Answers

From Java Platform, Standard Edition 8 Names and Versions:

In JDK 8 and JRE 8, the version strings are 1.8 and 1.8.0

Why? Because the developers of Java chose to name the versions like this. I can only assume the real reasons, but I think it is, because naming it Java 8 implies that it is new and much better than Java 7 but keeping the version bump from 1.7 to 1.8 indicates that it is still version 1.x and therefore still backwards compatible. In the end it is marketing.

See also Why is Java version 1.X referred to as Java X?.

like image 141
leonardkraemer Avatar answered Oct 28 '22 12:10

leonardkraemer