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..
Not sure why you claimed I was inaccurate, and then proceeded to confirm what I said (I appreciate your extra nuance though). In any case, Oracle JDK is still closed source, no? Unlike other distributions, which are mainly open source (e.g. Temurin, Corretto, etc.)
Also it gets complicated across versions, right? Oracle JDK 8 is probably the most distinct from “openjdk 8”
Not sure why you claimed I was inaccurate, and then proceeded to confirm what I said
You can't run the OpenJDK JDK (just as you can't run the Linux kernel project), but you can run Oracle JDK, Corretto, or Temurin, and all three of them are, therefore, very much not the same thing as the OpenJDK JDK. So you were correct in that Oracle JDK ≠ OpenJDK, but neither is any other JDK distribution, and in the same way.
Oracle JDK is still closed source, no?
If you mean, can you build something that's bit-for-bit identical to the Oracle JDK distribution from an open project, the answer is no (although if you build the OpenJDK JDK from source you also wouldn't get Corretto). It does get a bit subtle, though. For JDK NN, NN.0.1., and NN.0.2, Oracle JDK is just as different from the OpenJDK JDK build as Correto or any other distributions (i.e. it's built from the OpenJDK JDK project, with some additions like certificates etc..). For later updates (relevant only for LTS), the patches could, indeed, differ from those applied to the OpenJDK JDK Updates projects (they may differ among other distributions, too), and their source is, indeed, closed. The JDK, however, is still free for use in production.
The reason for that is that Oracle funds the development of OpenJDK, and we need revenue to keep that going. So we sell updates to JDKs that are over 3 years old (and support), to have companies that want to benefit from no work on any upgrades in legacy projects subsidise OpenJDK. If it weren't for these companies paying for old versions of Oracle JDK, there would be no OpenJDK.
Also it gets complicated across versions, right? Oracle JDK 8 is probably the most distinct from “openjdk 8”
This one is tricky, because the JDK was only fully open-sourced starting with JDK 11. Versions prior to that contained components that are completely different implementations (and I think some parts are even missing in non-Oracle distros). I wouldn't use any such old versions in production at all, but if I had to, I certainly wouldn't use anything other than the Oracle ones (unless I really knew what I was doing).
right… but all i claimed was oracle jdk ≠ openjdk lol. And yes, you can’t build Corretto from openjdk, but you can build Corretto from Corretto source! And for 8, I’m literally right Oracle JDK is a proprietary, closed source implementation?
You seem like an Oracle employee? So of course you’d recommend not using openjdk 8. I’d strongly disagree though, given I understand there are probably thousands (if not millions+) of prod services running on openjdk 8 implementations. You’re definitely overstating the risk (a inaccuracy!)
And for 8, I’m literally right Oracle JDK is a proprietary, closed source implementation?
Not really. Whatever is in the OpenJDK JDK 8, is in the Oracle distribution. Some pieces were never open-sourced, so they're not in any other JDK.
You seem like an Oracle employee? So of course you’d recommend not using openjdk 8.
Yes, like nearly everyone working on OpenJDK, I'm an Oracle employee. I'm well aware some use other distros of JDK 8 which aren't the Oracle ones (they're also not OpenJDK ones, because there's no such thing). The OpenJDK JDK is the name of the one implementation of Java SE done by Oracle, so obviously I'm only biased for it, but at the same time no one is using OpenJDK 8, because that's not a thing you can use (you can use Oracle JDK 8 or Corretto JDK 8, which are two JDKs built from OpenJDK with additions). If we thought they were risky, we wouldn't have allowed them, I'm just saying that I wouldn't be using such an old technology if it weren't maintained by the people who actually built it (although, when there are big security, we help the Updates projects, because OpenJDK is an Oracle project, and if it were dangerous, it would reflect badly on us).
View all comments
Show parent comment
1
u/keenOnReturns 6d 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.