historically it was common to run the oracle JDK i...
# getting-started
c
historically it was common to run the oracle JDK in production. Nowadays I think a lot of folks just run openJDK everywhere.
m
The free JDK for 11+ is now referred to as Oracle OpenJDK. As per here. Oracle JDK is the paid, support variation. https://www.oracle.com/java/technologies/javase-downloads.html#JDK14 So OpenJDK, but published by Oracle. And yes, on servers, only the JRE is required.
d
Note that Oracle only supports the latest version of its OpenJDK builds. So if you want to use e.g. Java 8 you'll have to use a different build, e.g. AdoptOpenJDK.
m
Can you please clarify 'supports'. They only provide support if you have paid them, and then it's reasonable for them to insist you be on LTS or later. Or are you referring to them no longer providing updates/security fixes for versions older than the current LTS? For JDK8, I believe one can still use the official JDK from Oracle on the servers as we've always done.
But it appears they're offering updates for JDK 8, still. 8u251 is available from that download page.
That Java 8 is Oracle Java
You can't use that in production, if I understand correctly.
(Unless you pay for it)
m
I believe the licensing for 8 remained just as it was before all this, so you can continue to use it in prod. And it appears Oracle is continuing to patch it. At least I don't recall there being any requirement to pay for JDK8 in production. The changes you reference apply to 11+. If you want to use Oracle OpenJDK, and have all patches and security fixes, then you have to run the latest LTS, and upgrade to the latest all the time. If you want to remain on 9/10 (and shortly, 11/12/13), and have any patches/security fixes, you'll have to use one of the other distros (as some of the others will keep them updated)
Jetbrains article states that Oracle won't be providing public updates to JDK after Jan 2019, but that doesn't appear to be the case as 8u251 was released Apr 14, 2020 (yesterday) and appears to be free to download. Never mind... I just clicked the download link and see all the warnings. As you said, very confusing, and lots of mis-information.
That says:
The Oracle JDK License has changed for releases starting April 16, 2019.
That means to me, yes, it includes Java 8 builds after that date.
It is free to download, yes.
But you may only use it for free during development.
If you want to deploy that build you need to pay.
m
Yes, you are completely correct. Only the latest LTS is available from Oracle for no charge to use in production. AdoptOpenJDK (and others) are available for older versions, or if you just don't want to deal directly with Oracle.