Java is a language created by Sun, who got bought out by Oracle. Java runs on a JVM (java virtual machine) which is what lets it be cross platform. Basically you compile your Java code to Java bytecode which the JVM acts as an interpreter for. If you don't know this, it's worth looking into! You compile your code with a Java development kit (they have more tools than just that though), an example is the OpenJDK (Open Java development kit). Another is Oracle's proprietary one. There are other propriety JDKs but they all adhere to the same standard and many of them are built on top of OpenJDK. OpenJDK is open source and anyone can use it without express permission. Oracle's propriety one has a different license, uses different libraries and has a few little tweaks so Oracle can sell it. Google and Oracle have had their kerfuffles and Google has chosen to go with the open source version. I'll just insert my opinion and say this is a good thing, it makes Google and Android that bit less beholden to Oracle who I have an (arguably) irrational dislike for. FWIW OpenJDK is the "reference" implementation as of Java 7 (so OpenJDK is what the standard says "this is what does it right"). It's also maintained by Oracle! As an end user there's very little that you need to be concerned with. Answer from gyroda on reddit.com
🌐
Reddit
reddit.com › r/learnprogramming › can someone explain the whole openjdk vs java thing for me?
r/learnprogramming on Reddit: Can someone explain the whole OpenJDK vs Java thing for me?
January 12, 2017 -

I'm trying to learn Android development and I know Google switched to OpenJDK in Android N due to the lawsuit with Oracle. If I learn Java is it the same as learning OpenJDK and are there differences?

Top answer
1 of 14
440

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. source

Ref: List of Java virtual machines

2 of 14
348

For Java 7, nothing crucial. The OpenJDK project is mostly based on HotSpot source code donated by Sun.

Moreover, OpenJDK was selected to be the reference implementation for Java 7 and is maintained by Oracle engineers.

There's a more detailed answer from 2012 on difference between JVM, JDK, JRE & OpenJDK, which links to an Oracle blog post:

Q: What is the difference between the source code found in the OpenJDK repository, and the code you use to build the Oracle JDK?

A: It is very close - our build process for Oracle JDK releases builds on OpenJDK 7 by adding just a couple of pieces, like the deployment code, which includes Oracle's implementation of the Java Plugin and Java WebStart, as well as some closed source third party components like a graphics rasterizer, some open source third party components, like Rhino, and a few bits and pieces here and there, like additional documentation or third party fonts. Moving forward, our intent is to open source all pieces of the Oracle JDK except those that we consider commercial features such as JRockit Mission Control (not yet available in Oracle JDK), and replace encumbered third party components with open source alternatives to achieve closer parity between the code bases.

🌐
Baeldung
baeldung.com › home › java › jvm › differences between oracle jdk and openjdk
Differences Between Oracle JDK and OpenJDK | Baeldung
January 8, 2024 - Oracle JDK was licensed under the Oracle Binary Code License Agreement, whereas OpenJDK has the GNU General Public License (GNU GPL) version 2 with a linking exception. There are some licensing implications when using Oracle’s platform. Public updates for Oracle Java SE 8 released after January 2019 won’t be available for business, commercial, or production use without a commercial license, as Oracle announced.
🌐
Medium
medium.com › @youeleven › understanding-the-differences-between-jdk-and-openjdk-b9b86e8e45dc
Understanding the Differences Between JDK and OpenJDK | by youeleven | Medium
May 2, 2024 - Unlike the JDK, which was primarily developed and updated by Oracle, OpenJDK is a collaborative effort involving various contributors, including individuals, companies, and organizations.
🌐
OSPOCO
ospo.co › blog › whats-the-difference-between-openjdk-and-java
OSPOCO: What's the Difference Between OpenJDK and Java?
June 29, 2025 - The core "Java" is controlled by Oracle. Oracle provides and manages the source code for the "OpenJDK," a source-code-only open source project. Oracle also provides "Java"-branded JREs and JDKs through Oracle.com. Anyone downloading "Java" from Oracle (i.e. the JRE or JDK) is required to enter into a commercial license with Oracle, the terms of which usually require payment per-employee.
🌐
The Great API
thegreatapi.com › home › what’s the difference between java, jre, jdk, and openjdk?
What's the difference between Java, JRE, JDK, and OpenJDK? - The Great API
November 2, 2023 - To sum up, Java is a programming language, the JRE is a software package that is required to run Java applications, the JDK is a software development kit that is used to develop Java applications, and OpenJDK is an open-source version of the JDK.
🌐
Spinnaker Support
spinnakersupport.com › home › oracle jdk vs openjdk: which one is right for your company?
Oracle JDK vs OpenJDK: Which One is Right for Your Company?
February 5, 2025 - However, because Oracle now owns the rights to Java, it often refers to it in official documents as “Oracle OpenJDK.” You should be aware of this naming convention to avoid confusion when comparing the two.
Find elsewhere
🌐
TuxCare
tuxcare.com › home › openjdk vs. oracle jdk: which one should you choose?
OpenJDK vs. Oracle JDK: Which One Should You Choose?
November 19, 2024 - Oracle JDK is known for providing high-quality builds of Java and offering long-term support (LTS) versions, making it a reliable option for enterprises looking for a comprehensive support package.
🌐
Quora
quora.com › Whats-the-difference-between-Open-JDK-and-Java
What's the difference between Open JDK and Java? - Quora
Answer (1 of 6): Well the known answer to that question is that open jdk is an open source implementation of the Java platform wich is not. Open source means that you can read and also modify the source code, thing that cannot be done with the Java platform. From a functional point of view they...
🌐
Medium
medium.com › @richard.ojo › oracle-java-se-and-openjdk-545effad2f7f
Oracle Java SE and OpenJDK. With the introduction in early 2023 of… | by Richard Olumide Ojo | Medium
November 21, 2023 - There are no real technical differences because Oracle JDK is based on OpenJDK; this is more the case for later versions (Java 11 onwards where there is much less variance between releases from different vendors).
🌐
BellSoft
bell-sw.com › announcements › 2020 › 08 › 14 › 7-reasons-to-switch-from-Oracle-JDK-to-Liberica-JDK
OpenJDK vs. Oracle JDK: 7 Reasons to Switch from Oracle Java
March 14, 2024 - But for many people, Oracle means a “prominent trustworthy company,” which is true, while OpenJDK means “some community trying their best making open source Java runtime” — and here is where they are wrong.
🌐
Azul
azul.com › home › oracle java vs openjdk: what you need to know before you renew
Oracle Java vs OpenJDK: What You Need to Know Before You Renew - Azul | Better Java Performance, Superior Java Support
April 18, 2026 - Learn the differences between Oracle Java and OpenJDK, how licensing works, and what it means for cost, support, security, and long‑term sustainability.
🌐
Which JDK
whichjdk.com
Which Version of JDK Should I Use? | whichjdk.com
To build and run Java applications, ... Platform, Standard Edition (“Java SE”) specification. The OpenJDK is the open source reference implementation of the Java SE Specification, but it is only the source code....
Top answer
1 of 1
4

Firstly, a JDK consists of a Java Runtime Environment (JRE) and various tools that help you to compile and debug Java code. The JRE is stand-alone and doesn't contain any compiling or debugging tools. So, if you're not into development and just want to run applications written in Java, then you can just install the JRE.

The Oracle JDK is maintained by Oracle (surprise) whereas OpenJDK is an open source implementation with contributions from the open Java community as well as Oracle. As far as I know, Oracle JDK’s build process builds from OpenJDK source code. So, since Oracle JDK gets its source from OpenJDK, there is no major technical difference between Oracle JDK and OpenJDK. My understanding is that all of the development and bug fixes happen in OpenJDK and then they are propagated to the Oracle JDK.

I'll quote this answer here:

In the days of Java 6, there used to be a big difference between the two of them, OpenJDK running slower and supporting less. However, nowadays, except for the java-web-plugin (which was rewritten by the community and named icedtea-web), they are exactly the same. Neither of the two versions is "wrong".

There are still people claiming OpenJDK is worse than Oracle's JDK, but it's become a myth.

There have been instances where people claim that they had issues while running OpenJDK and that got solved when switched over to Oracle JDK or vice versa. But these claims, generally, cannot be verified. Considering the fact that Oracle JDK gets its source from OpenJDK these claims will always be difficult to prove.

Also, on an unrelated note, you can create your own JDK provided you follow the Java language specifications. Many companies (like Twitter) have their own JDKs. Of course, there are certain processes (that I'm currently not aware of) you have to follow before you do that.

🌐
Focusoutlook
focusoutlook.com › oracle-java-vs-openjdk-a-comparative-overview
Oracle Java vs OpenJDK: a comparative overview
August 1, 2025 - While from the technological perspective, they are mostly similar (except for several features discussed below). The OpenJDK performance is equal to that of Oracle Java, proven by industry-standard benchmarks and OpenJDK microbenchmarks.
🌐
OpenLogic
openlogic.com › blog › java-experts-openjdk-vs-oracle-jdk
OpenJDK vs. Oracle JDK: What the Java Experts Say | OpenLogic
The biggest difference between OpenJDK and Oracle JDK is that OpenJDK is open source Java with a GNU General Public License and Oracle JDK requires a commercial license under Oracle Binary Code License Agreement.
🌐
Azul
azul.com › home › products › core › openjdk vs oracle jdk – comparison table
Differences Between OpenJDK vs Oracle JDK | Azul
February 20, 2026 - Click to see the differences between OpenJDK vs Oracle JDK including an in-depth comparison table for product, features and commercial support services.
🌐
Red Hat
redhat.com › en › topics › application-modernization › openjdk-vs-oracle-jdk
OpenJDK versus Oracle JDK
It is an alternative that allows organizations to stabilize and standardize their Java environments for years to come with little to no transition effort or traditional licensing hassles. ... Oracle JDK and OpenJDK are each a set of software and specifications known as Java Development Kits.
🌐
Bell Software
bell-sw.com › blog › oracle-java-alternatives-comparison-of-openjdk-distributions
Alternatives to Oracle Java — Overview of OpenJDK Distributions (2026)
April 21, 2026 - Unlike bare OpenJDK, these distributions offer TCK-verified builds, predictable security update cadences, and commercial support options. Spikes of interest in Oracle Java alternatives coincide with recurrent changes to Oracle’s Java license, the latest of which — a new pricing model based on employee headcount — has brought especially significant consequences for large enterprises.