The next version of Java (Java 11) will be released on the 25th September 2018. Several developers and companies plan to switch from Java 8 to Java 11 within the next month. Since Java 9 and Java 10 were the 2 first version that are based on the new release train of Oracle a lot of people assume a LTS (Long term support) release of Java 11 by Oracle that they can easily use the next year in production.
While there are still some rumors and wrong assumptions about the new release train, the content of Java 11 and its pricing model we will have a deeper look at all this points in a series of blog posts.
In this first post we will have a general look at the release model and licence of Java 11 and any constraints that are based on this topics.
Oracles new release and licence model for Java
When having a look at the current state of Java 11 you can already download an “early access” build. Here Oracle provides 2 different types of builds: “OpenJDK builds” and “Oracle JDK builds”
As you can see in the screenshot the 2 versions differ in the supported operation systems and the licence. Once Java 11 is released you will be able to download the final release binaries for both builds types. It is very important to understand the difference between the offered versions. To be true there are no real difference in the functionality of these builds. Both will build upon the same sources (from OpenJDK) and will contain the same functions and Java APIs. The main differences will be the licence that defines how and when the build can be used and the future support for this 2 builds. While we already publised a more detailed article about that topic and mentioned it in our OpenJDK overview page I will just give a short summary:
- These binaries are build based on OpenJDK
- Like earlier Java versions you can simply use this builds everywhere (for example on a cloud server in production)
- These builds will be supported for only 6 month per Java version. Based on this you will not get any Java 11 updates after 6 month for the OpenJDK builds from Oracle. If you want to get access to security updates and bugfixes you need to switch to Java 12 in March 2019
Oracle JDK builds
- These binaries are build based on OpenJDK
- If you do not refer commercial support by Oracle you must not use this builds in production. It’s fine to use this builds for development and test environments but based on the licence it will be forbidden to use them in any productive environment (without a commercial licence)
- With a commercial licence you can download and use updates of Java 11 till 2023. Based on this you will get access to the so called LTS release of Java 11
- Without commercial support you will not get any Java 11 updates after 6 month for the Oracle JDK builds from Oracle. If you want to get access to security updates and bugfixes you need to switch to Java 12 in March 2019
Based on this information each developer needs to carefully decide which Java builds he wants to download and use. If you do not want to send any money to Oracle than choose the $free OpenJDK build. But be aware that it will not come with LTS support. You will be forced to upgrade every 6 month or run an outdated potentially vulnerable system. If you depend on LTS support then the OracleJDK build is for you. But it is not for free. Oracle will have you pay for this extra support they are offering.
Think out of the box
Since several years other vendors provide free and commercial builds for Java. Most developers may have already seen IBM, Azul or Red Hat JDK somewhere in the wild. With the new Java release train most of these companies updated their strategy, licenses and business model for JDKs and provide several alternatives to Oracle’s JDK. In our article about the price and support models for Java you can find a good overview of the most popular vendors. Based on your development workflow and future plans, one of the Java builds from another vendor might suit you better than the Oracle one. Since all these builds are based on the same sources from OpenJDK and successfully passed the TCK you do not need be afraid to use them. Most likely the number of Java vendors will increase beacause of the new Java release train. This will help developers and companies to find a release and licence model that fits to their internal needs. And once you found “the perfect Java” for your - it’s time to think again about creating cool applications, frameworks and architecture.
Do not stress yourself with the changes in the Java ecosystem. Inform yourself about the alternatives next to Oracle within the next month and be prepared for the bright future of Java. By doing so you can really be relaxed ;)
In the next post we will have a look at some features and functionality that was removed or has been changed between Java 8 and Java 11. Based on this we will see what kind of backward compatible Java 11 provides and how you can fix issues in that area.