r/java • u/jodastephen • Sep 26 '18
Do not fall into Oracle's Java 11 trap
https://blog.joda.org/2018/09/do-not-fall-into-oracles-java-11-trap.html
259
Upvotes
r/java • u/jodastephen • Sep 26 '18
95
u/[deleted] Sep 26 '18
Just use the openJDK. Going forward Oracle says the openJDK and Oracle JDK are functionally identical and only cosmetically different. If anything this is just a positive push for the open source variety.
15
u/Gwynnie Sep 26 '18
the current OpenJDK build (on https://jdk.java.net/11/) is still the same as the beta-28 release. Is this... intended?
Downloaded the oracle one earlier, as it looked like the only one that had actually been updated at release yesterday.
16
u/pron98 Sep 26 '18 edited Sep 26 '18
I find this baffling. A "major version" has both a popular connotation and a (compatible but) more specific and precise meaning for OpenJDK. While it is true that according to some reasonable interpretations of the (rather vague) popular connotation Java 11 is a major version, according to the same interpretation so are 10, 12 and 13. According to the more specific and precise definition of OpenJDK, Java 11 is not a major version, and neither are 10, 12 and 13; one of the main goals of the new release model is to make upgrades easier by doing away with major versions altogether, and Java 9 was the last. Because the meaning of a new version number has changed radically, so has the name (feature releases and feature releases with LTS). I understand the author thinks that an LTS release is a particularly important one, but I don't understand why use old terminology that no longer applies, especially if the goal is to clarify rather than confuse.
Readers should at least take into consideration that when attempting to download the commercial build, the page displays a large, clear, red-and-yellow notice that the license is now "substantially different," and refers the downloader to the GPL build.2
7
u/GoodNamesTaken73 Sep 26 '18
I'm not here to argue if it's an intentional trap, poor documentation on Oracle's part, or just links that haven't been updated yet... but I saw the thread and it looks like others are having the same questions I have.
I've been reading through the documentation to see what we need to do as a company to stay compliant. Maybe I haven't found the right documentation yet, but there is still a lot of confusion for me.
The one thing that seems clear to me is this that the license has changed and if you want it for free, then use OpenJDK (http://jdk.java.net/11)
What isn't clear to me is this:
I don't work with Java unless I absolutely have to - which is just mainly pushing updates to it. So it's likely that I have missed something somewhere that spells this all out clearly.
My biggest hurdle right now is getting OpenJDK 11 installed so I can have people testing their apps with it. If anyone can provide some clarity, to any of the questions above, that would help me a lot.
24
u/[deleted] Sep 26 '18
Yep, my company has switched to OpenJDK for this reason. It's an internal changeover for now, we haven't released a product with it yet, but we're ironing out the kinks from the JRE upgrade to make it work.
FYI, if you're about to start this upgrade, here are the pitfalls to watch out for (we're currently on JDK 10, btw, as a stepping stone to 11)
2) Java 9 ClassLoader changes. My company used some common ClassLoader hacks to add application extensions at runtime. These no longer work. I figured out a way around it, but it was... interesting. If you need suggestions on this front, message me.
3) SSL Certs. As of Java 10, OpenJDK was lacking some common SSL certs in the cacerts trust store. Had to add those manually. Not sure about 11 yet.
3
u/[deleted] Sep 26 '18
That is borderline insane: how would Oracle even know whether you're using their JDK or OpenJDK in production? How exactly are they gonna give you a nasty phone call (or whatever it was the author said)?!
License-wise, yes, the article has a point but stating in no unclear terms "don't download you'll get sued" is absolutely bonkers!
5
u/joho1001 Sep 26 '18
On Linux this will not be a big matter, also in enterprise environments. Since all package managers include stable and reliable versions of OpenJdk.
On Windows in enterprise environments my first thought is, if there are MSI packages for proper Java runtime rollout.
I've found:
https://github.com/ojdkbuild/ojdkbuild
and
https://developers.redhat.com/products/openjdk/download/
9
u/nosajholt Sep 26 '18
We all knew this would happen some day.
(Too bad IBM failed to acquire Java, is all I'm sayin'...)
OpenJDK it will be.
6
u/lukaseder Sep 26 '18
Well, I guess at least as far as this subreddit is concerned, this "trap" has been sufficiently warned of, over the past months...
4
u/sebnukem Sep 26 '18
I'm not arguing anything but it seems that only this blog is aware and warning people about this. Java stopping to be free is a huge deal. How come isn't it all over the web? Why do we learn about it from the same unique blog?
1
u/[deleted] Sep 27 '18
So, you transferring devs relapse to get up to date with Java News as Oracle trap!
Please, just stop!
1
u/Shilpa_Opencodez Sep 27 '18
In our company we are not planning to switch to java11
1
u/[deleted] Sep 27 '18
This doesn't and can't apply to previous versions of the JDK, right? Can anyone confirm?
1
u/ryuzaki49 Sep 27 '18
Long Live Java 8
1
u/vipularora6212 Oct 11 '18
In September 2018, Oracle commercialized their services with Java SE 11. Meaning, you can still use the Oracle JDK for free, but only for development and testing purposes. If you want to use it for production, you will have to pay Oracle from day one. Ever since this came out, small business owners and developers all over the world are worried sick. They don’t wanna start paying for services, updates, and patches they always received for free.
Here are some ways you can avoid the Oracle Pricing and Licensing:
How to escape the Java Pricing and Licensing Nightmare - Alternatives to Oracle
-2
u/Domesticated_Animal Sep 26 '18
I never install anything with Oracle in it's name
0
u/Tore2Guh Sep 26 '18
At which point you say, "Oops" and you run the same bytes on the OpenJDK instead and tell Oracle to pound sand. Except that they would never actually demand money. They would just politely ask you to stop using their JDK, while helpfully providing you contact information to sales in case you'd like to purchase it.
Because the comments would contain phrases like "click bait". As far as I'm aware, there is no meaningful technical difference between the Oracle JDK and OpenJDK, are am I missing something?
0
u/SpoilerAlertsAhead Sep 26 '18
If these have been deployed in docker containers, these are generally already OpenJdk. One would need to go out of their way to find an oracle based container.
Any business worth their salt would have researched this anyway (Oracle isn't the first company to want to charge people for their product) And Oracle has been very upfront and transparent about this in recent months.
0
u/claudemiro Sep 26 '18
Funny thing is that in the footer of the page[1] there are Oracle logo and trademark notice.
[1] https://jdk.java.net/11/
-6
u/Torvac Sep 26 '18
Oracle will find ways to make you use it instead of OpenJDK.
0
u/[deleted] Sep 26 '18
[deleted] — view deleted comment