Hi, Habr! I present to you the translation of the article
“Do not fall into Oracle's Java 11 trap” by Stephen Colebourne.
Java 11 has
been officially released . This is a major release
with long-term support (LTS - long-term support). However, Oracle has prepared a trap (intentionally or accidentally).
Trap
For 23 years, developers are used to downloading the JDK from the Oracle website and using it for free. Enter “JDK” into your favorite search engine, and the top link will lead to the Oracle Java SE download page (I will not provide the link intentionally). But this request and this link are now a trap.
')
Oracle JDK, which almost all search queries refer to, is now commercial and not free.The key part of the
updated license agreement is as follows:
You can not use your programs;
TransferYou may not use the software for any data processing or for any commercial, industrial or internal business purposes other than developing, testing, prototyping and demonstrating your application;
The trap looks like this:
- Download the Oracle JDK (because this is what you have always done, and this is where the search engine will lead you to this place).
- Use it in a production environment (because you did not understand and / or did not know that the license was changed)
- Get a nasty phone call from an Oracle rights team that requires a lot of money.
In other words, Oracle can rely on the inertia of Java developers to get them to download the wrong (commercial) version of Java. If you don’t read the license agreement or the warning very carefully, you may not even understand that Oracle JDK is now commercial, and therefore you may have to pay Oracle for Java.
Is this trap malicious behavior on the part of Oracle? Readers will have their own opinion. It should be borne in mind that Oracle invests huge sums in the development of Java, so it is reasonable to have a commercial plan for those who want it. However, Oracle also provides a free alternative.
Decision
The solution is simple!
Use the assembly OpenJDK.In addition to its commercial JDK, Oracle is building an OpenJDK build. This is a free build with a GPL license (the exception is Classpath, safe for commercial use).
Download here .
Currently, the OpenJDK build from Oracle is the only one available. However, more will be available soon, for example, from
AdoptOpenJDK (probably this week). As well as the OpenJDK assemblies from other non-Oracle community members that will be used for long-term support for Java 11. (
comment of the translator: you can read this answer on SO about the difference between OpenJDK and AdoptOpenJDK)Summary
Do NOT download or use Oracle JDK unless you intend to pay for it.
From now on, to use Java 11, download and use the OpenJDK build.
Additional information on the topic (eng.):
blogs.oracle.com/java-platform-group/oracle-jdk-releases-for-java-11-and-laterblog.joda.org/2018/08/java-is-still-available-at-zero-cost.htmlblog.joda.org/2018/09/time-to-look-beyond-oracles-jdk.html