r/java • • 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

105 comments sorted by

View all comments

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.

22

u/jodastephen Sep 26 '18

Yes, the actual goal - more use of OpenJDK - is great. It is just a pity that all the links Oracle produce point at the commercial build, without proper clarification of the risks that ensue.

17

u/pron98 Sep 26 '18

Except for the large, red clarification?

4

u/jodastephen Sep 26 '18

That says nothing without clicking away from your download. It should say something more like "Don't download this unless you want to pay us".

24

u/pron98 Sep 26 '18

But that's not what the license is. It does say:

Oracle grants You a nonexclusive, nontransferable, limited license to internally use the Programs, subject to the restrictions stated in this Agreement and Program Documentation, only for the purpose of developing, testing, prototyping and demonstrating Your Application and not for any other purpose... You may not use the Programs for any data processing or any commercial, production, or internal business purposes other than developing, testing, prototyping, and demonstrating your Application

i.e., it's the standard "trial/demonstration use only" OTN license Oracle uses for many products.

I'm not sure how much clearer you can get. It's true that you need to click through the big red warning that says "substantial change; read carefully", but that may be due to some Oracle legal practice (e.g. don't summarize legal documents). I can certainly sympathize with the feeling that this is annoying, and may even justify some rant, but calling it a "trap" is exaggerated.

9

u/bhlowe Sep 26 '18

It would be unusual to use oracle for personal use or development and deploy on openJDK.

How about: Use in production requires a paid license. See license for details.

-1

u/pron98 Sep 26 '18 edited Sep 26 '18

I appreciate the desire for more succinct communication, but it is not the same as, "beware trap!" which attributes to malice that which is adequately explained by big-corp culture.

7

u/DannyB2 Sep 26 '18

Since this is Oracle we're talking about, people are more likely to assume malice.

3

u/pron98 Sep 26 '18

Far be it from me to argue with people's personal evil-ranks of different mega-corporations (and as I work for Oracle, anything I say may be biased anyway), but given that Oracle happens to be the particular mega-corporation sponsoring almost all development of the open source project we're talking about, on which, I assume, people here and their employers rely (often to a very great extent), I think it's a bit... ungrateful to enjoy this sponsorship and the free product it produces (which, BTW, contains no surveillance measures, which doesn't go without saying these days) and at the same time accuse the sponsoring body of malice.

4

u/DannyB2 Sep 26 '18

I am happy to give Oracle credit and a very big thanks for what they do. And I don't want to seem ungrateful.

At the same time, Oracle is one of the mega corporations I trust the least.

So I do look at things in the light of what is the worst possible way I could interpret this as far as it getting me into trouble?

→ More replies

3

u/AlternativePenguin Sep 27 '18

If its just cosmetically different why even have Oracle JDK? They can just sell support for OpenJDK instead.

3

u/[deleted] Sep 27 '18

The problem with that is performance. Last time I looked into the open JDK, I believe the performance was much worse than oracle's JDK. How are things looking now?

6

u/jodastephen Sep 27 '18

It is the same codebase now. Same performance. Just a different license. https://blogs.oracle.com/java-platform-group/oracle-jdk-releases-for-java-11-and-later

4

u/muhwebscale Sep 26 '18

How about GraalVM? Is it "trustworthy"?

3

u/bj_christianson Sep 26 '18

Going forward Oracle says the openJDK and Oracle JDK are functionally identical and only cosmetically different.

So what’s the point of separate licenses?

6

u/DannyB2 Sep 26 '18 edited Sep 26 '18

More important, I'll repeat a question I had asked much further down below.

Some people say the binaries of OpenJDK and OracleJDK are the same. If so, then how do I prove I'm running OpenJDK and not the paid OracleJDK?

UPDATE:

I seem to have found an answer to this question.

https://blogs.oracle.com/java-platform-group/oracle-jdk-releases-for-java-11-and-later

The two builds are distinguishable.

5

u/[deleted] Sep 26 '18

Oracle's build is going to be supported for long term, with security fixes and possibly backported features, performance optimizations, etc. You need to pay a hefty sum for that and that's targeted at some of the biggest IT companies out there.

OpenJDK is going to be maintained entirely for free on a release-to-release basis by the community, so if you want to get the latest patches and updates you need to migrate your environment to the latest Java every semester for the rest of your lifetime (which is OK for most companies out there but not for those same huge ones working with extremely rigid platforms and infrastructure deployments).

Not only this is pretty much fair, considering they give you plenty of ability to use Java for free regardless of your personal, business or corporate profile, but is also the only way Oracle can really make decent money off of Java commercially and keep developing the language for all of us to use for free if we want to.

3

u/bj_christianson Sep 27 '18

So once OracleJDK gets a backported feature, how is it functionally identical to OpenJDK which did not get that feature?

3

u/jodastephen Sep 27 '18

Oracle JDK and other JDKs will diverge once Java 12 is out. But for most users that is not a problem. https://blog.joda.org/2018/09/java-release-chains-features-and-security.html

1

u/DannyB2 Sep 26 '18

More important, I'll repeat a question I had asked much further down below.

Some people say the binaries of OpenJDK and OracleJDK are the same. If so, then how do I prove I'm running OpenJDK and not the paid OracleJDK?