Search code examples
javatomcatliferayjava-9portal

Does liferay CE 7 support Java 9?


Has anyone tried Liferay 7 tomcat8 bundle with Java 9 ? Is it supported?
If not, which version of Liferay CE portal supports Java9 and above ?


Solution

  • Short answer for GA is no, in any meaning.

    Long answer is : if you are using Liferay CE GA bundles up to 7.1.1 (GA 2) with tomcat, as suggested by the tag, Liferay did not had the proper metadata to run on java 9 and the bundles would not start (in tomcat it would just stop).

    The next bundle in line, GA 3, added the ability to run on Java 11, meaning that features of Java 11 might be present and this would make Java 9 an issue as "bugs" may emerge, especially those dynamically generated code components or those compiled when needed. Additionally, if you are using bundles, they may carry JVM options from Java 11 that do not exists on Java 9, in such case the vm would not even start without turning those.

    If not, which version of Liferay CE portal supports Java9 and above ?