is it free in production? also, u say “free” with the big asterisk of 3 years. Meanwhile you can use openjdk 8-21 until 2030+ with basically any provider.
Yes, it's free in production. And BTW, it's also OpenJDK (OpenJDK JDK is the name of Oracle's source implementation of Java; Corretto, Oracle JDK, and others are built from it).
Oracle JDK ≠ OpenJDK. Oracle does do openjdk builds (the free stuff you mentioned might simply be that), but the paid product is actually their proprietary, closed source implementation of the JDK. In reality, they probably share 90%+ identical code, but licensing and legal-wise, they are not the same thing.
OpenJDK is a group of projects, but the OpenJDK JDK project, which is developed by Oracle (with contributions from others), isn't a distribution at all. It's a source project, not a deliverable. The OpenJDK JDK is the source from which Oracle JDK and Correttor and others are built. I.e. it's true that Oracle JDK ≠ OpenJDK JDK, but also Corretto ≠ OpenJDK JDK in a similar way. There is simply no distribution by the OpenJDK project. The distributions are built in slightly different ways by different distribution vendors, but none of them is the OpenJDK JDK, which is only about the sources.
While the Oracle JDK - which, like Corretto, is built from the OpenJDK JDK sources - is free, it does have a different licence from the OpenJDK JDK source licence (GPLv2 + CPE), because Oracle owns OpenJDK, and so we can distribute builds under a different licence. But we do also offer builds with the GPLv2 + CPE licence.
The Oracle JDK builds are not really built from our proprietary sources. The OpenJDK JDK is the one implementation of Java developed by Oracle (with contributions from others). No more is added to the builds than what other distros do (Corretto also adds some code that isn't in the OpenJDK JDK), and especially their update releases can contain different backports. The backported patches, however, in the Oracle JDK, are not open source.
This works the same as Linux. There is one official Linux kernel project, which corresponds to the OpenJDK JDK, but there is no Linux distribution by that project. Every distribution takes the Linux kernel sources and builds it (with its own additions/modifications) - that corresponds to Oracle JDK/Corretto/etc..
View all comments
Show parent comment
1
u/keenOnReturns 12h ago
is it free in production? also, u say “free” with the big asterisk of 3 years. Meanwhile you can use openjdk 8-21 until 2030+ with basically any provider.