Home
/
Blog
/
How JDK11 Affects Liferay Users
2 Minutes

How JDK11 Affects Liferay Users

Learn what the changes in JDK11 really mean for Liferay users.

With the release of JDK11, Oracle’s new JAVA SE Support Policy brings sweepings changes to the Java Enterprise community.

Others have already created great explanations of the changes to come, so I won’t repeat their work here. I do, however, have some thoughts to share on how these changes will affect Liferay Portal and DXP users.

Starting with JDK11, you will no longer be able to use Oracle JDK for free for commercial purposes.

All commercial projects will require a subscription/service from Oracle to get the Oracle JDK. The majority of Liferay users are commercial users who deploy on Oracle JDK. If you don’t pay for support from Oracle for their JDK or one of their other products, you’ll need to start paying in order to continue using Oracle JDK.

OpenJDK binary is now your free option.

Oracle will continue to provide a free alternative with their Oracle OpenJDK binary. There will also be others such as Azul, RedHat, IBM and AdoptOpenJDK that will provide their own binaries. For now, Liferay has only certified Oracle's OpenJDK binary. We have to yet to determine whether all OpenJDK libraries can fall under the same name or if we need to certify them individually.

A new JDK will be released every six months and some of them will be marked as LTS releases.

Prior to JDK9, all JDKs were essentially Long Term Support (LTS) releases. Users received bug fixes for years, which allowed use to delay moving to a new release. Now, we’ll see a new JDK release every six months, but not all will receive long term support.

As of now, Liferay has decided we will not certify every single major release of the JDK. We will instead choose to follow Oracle's lead and certify only those marked for long term support. If you’ve seen our latest compatibility matrix, you may have noticed that Liferay did not certify JDK9 or JDK10. We instead plan to certify JDK11, JDK17 and JDK23, which have been marked as LTS. This is subject to change.

Oracle will only guarantee two updates per major release.

JDK8 has received 172 updates since its release. In contrast, JDK9, the first release that Oracle implemented this policy, has had four updates, while JDK10 only received two updates. Although JDK11 is designated as an LTS release, there is no guarantee of more than two updates from Oracle.

We will have to wait until JDK12 is released to see what will happen with JDK11. Perhaps I’m optimistic, but I believe that the Java open source community will continue to backport security issues and bugs well after Oracle decides to stop. We’ll have to wait and see.

January 2019 will be the last free public update for JDK8.

If you’re a Liferay user and you have not made a plan for your production servers, please start!

Below are the paths that are currently available, but these are in no way recommendations provided by Liferay. It is up to you to make the best decision for your own company.

  • Continue to use Oracle JDK8 without any future patches
  • Continue to use Oracle JDK8 and pay for a subscription
  • Switch to Oracle JDK11 and pay for a subscription
  • Switch to Oracle OpenJDK11 binary (knowing that you’ll have to make this decision again in six months)
  • Switch to a certified version of IBM JDK

I will try to update this list as more options become available, e.g., if we decide to certify AdoptOpenJDK, Azul Zulu, RedHat JDK and so on.

I am eager to see how the rest of the enterprise community reacts to these changes.

If you have more questions, please feel free to post to our community forum or reach out to our sales team at sales@liferay.com.

Related Content
5cf4121e-2c20-4ac6-ba9f-06bb3b4548bc
The Future of Java and How It Affects Liferay
Java and Liferay developers can still use Java and the JDK freely.
2 Min Read
December 17, 2021
507a3154-1507-499a-998d-f5591a2246e6
Creating Consistent User Experiences with Liferay Adaptive Media
Learn how Liferay Adaptive Media can help create optimal online experiences
3 Min Read
March 19, 2019
afbc92e0-d602-4148-ae81-1b02155137f5
Is An Open Source CMS Right For Your Business?
How to find a reliable open source CMS for the enterprise.
5 Min Read
August 26, 2022
Home
 / 
Blog
 / 
 / 
How JDK11 Affects Liferay Users
Text
2 Min Read

How JDK11 Affects Liferay Users

Learn what the changes in JDK11 really mean for Liferay users.
Image
Share

With the release of JDK11, Oracle’s new JAVA SE Support Policy brings sweepings changes to the Java Enterprise community.

Others have already created great explanations of the changes to come, so I won’t repeat their work here. I do, however, have some thoughts to share on how these changes will affect Liferay Portal and DXP users.

Starting with JDK11, you will no longer be able to use Oracle JDK for free for commercial purposes.

All commercial projects will require a subscription/service from Oracle to get the Oracle JDK. The majority of Liferay users are commercial users who deploy on Oracle JDK. If you don’t pay for support from Oracle for their JDK or one of their other products, you’ll need to start paying in order to continue using Oracle JDK.

OpenJDK binary is now your free option.

Oracle will continue to provide a free alternative with their Oracle OpenJDK binary. There will also be others such as Azul, RedHat, IBM and AdoptOpenJDK that will provide their own binaries. For now, Liferay has only certified Oracle's OpenJDK binary. We have to yet to determine whether all OpenJDK libraries can fall under the same name or if we need to certify them individually.

A new JDK will be released every six months and some of them will be marked as LTS releases.

Prior to JDK9, all JDKs were essentially Long Term Support (LTS) releases. Users received bug fixes for years, which allowed use to delay moving to a new release. Now, we’ll see a new JDK release every six months, but not all will receive long term support.

As of now, Liferay has decided we will not certify every single major release of the JDK. We will instead choose to follow Oracle's lead and certify only those marked for long term support. If you’ve seen our latest compatibility matrix, you may have noticed that Liferay did not certify JDK9 or JDK10. We instead plan to certify JDK11, JDK17 and JDK23, which have been marked as LTS. This is subject to change.

Oracle will only guarantee two updates per major release.

JDK8 has received 172 updates since its release. In contrast, JDK9, the first release that Oracle implemented this policy, has had four updates, while JDK10 only received two updates. Although JDK11 is designated as an LTS release, there is no guarantee of more than two updates from Oracle.

We will have to wait until JDK12 is released to see what will happen with JDK11. Perhaps I’m optimistic, but I believe that the Java open source community will continue to backport security issues and bugs well after Oracle decides to stop. We’ll have to wait and see.

January 2019 will be the last free public update for JDK8.

If you’re a Liferay user and you have not made a plan for your production servers, please start!

Below are the paths that are currently available, but these are in no way recommendations provided by Liferay. It is up to you to make the best decision for your own company.

  • Continue to use Oracle JDK8 without any future patches
  • Continue to use Oracle JDK8 and pay for a subscription
  • Switch to Oracle JDK11 and pay for a subscription
  • Switch to Oracle OpenJDK11 binary (knowing that you’ll have to make this decision again in six months)
  • Switch to a certified version of IBM JDK

I will try to update this list as more options become available, e.g., if we decide to certify AdoptOpenJDK, Azul Zulu, RedHat JDK and so on.

I am eager to see how the rest of the enterprise community reacts to these changes.

If you have more questions, please feel free to post to our community forum or reach out to our sales team at sales@liferay.com.

Originally published
September 25, 2018
 last updated
December 17, 2021
Topics:

See how you can build a solution fit for your needs

1400 Montefino Avenue
Diamond Bar, CA 91765
USA
+1-877-LIFERAY
Built on Liferay Digital Experience Platform