0

If the JDK contains both the JRE and JVM does that mean we can find the source code for all of these in, for example, an OpenJDK repository?

Michael Munta
  • 207
  • 2
  • 16

1 Answers1

2

Today, yes.

Currently, every implementation of Java available is built entirely or partially on the source code provided by the OpenJDK project.

Understand that the Java platform is defined by a set of specifications, JSRs, and JEPs. Any implementation that complies with these specs will run your Java app. Any one is free to write such an implementation. But using the trademark Java requires coming to terms with the trademark owner, Oracle.

In the past, some vendors built their own implementations from their own proprietary codebase. Some of those were closed-source.

Today, all the vendors have agreed to work cooperatively through the OpenJDK project. These vendors retain the right to add features or write patches to fix bugs and security vulnerabilities, provided they abide by the licensing terms required by the OpenJDK project.

Most/all of the vendors also cooperate to provide executable builds & installers through the AdoptOpenJDK project.

Here is a flowchart I made listing the various vendors and their Java implementations.

enter image description here

Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154