close

Filter

loading table of contents...

CoreMedia Content Cloud v12 Upgrade Guide / Version 2404

Table Of Contents

7.12.1 Java 17 Support

Caution

Adapt your environments to use Java 17

CoreMedia 12 requires Java 17. Java 17 is the next Long Term Support version of the Java platform. All components have been updated to work with Java 17. Java 17 is now also required for building the workspace and running the applications, Java 11 will not work anymore.

Since Sencha Cmd The exception is the studio-client workspace which uses Sencha Cmd to build, which still requires Java 11. From CMCC 2404.1 on, CMCC 12 will not require Sencha Cmd anymore. Please refer to section Section 7.3.2, “Sencha Cmd Removal” for further details.

Update your development and production environments to use Java 17.

Also note that a new Java 17 Base Image is provided that must be used for building Docker images. Refer to https://github.com/coremedia-contributions/docker.java-application-base/releases/ for the corresponding 2.1 release and changes associated with it.

If you are using artifact cglib:cglib in your own project code, you may want to consider switching to Spring's shadowed version of cglib provided by org.springframework:spring-core. cglib is not maintained actively any longer and presumably not compatible with Java 17, see https://github.com/cglib/cglib. The CoreMedia Blueprint workspace has been migrated to Spring's shadowed version of cglib and, consequently, does not define a cglibartifact version any longer. Should you want to migrate use of cglib in your own code, you need to replace package net.sf.cglib with org.springframework.cglib.

For handling of GIFs in the built-in image transformation we make use of the package java.desktop/com.sun.imageio.plugins.gif which is not exported and thus not usable with Java 17 by default. To allow access the following JVM argument must be added:

--add-exports java.desktop/com.sun.imageio.plugins.gif=ALL-UNNAMED

This argument is already added to the docker images, spring-boot-maven-plugin configuration and the provided IDEA run configuration files of the apps that perform image transformation (studio-server, cae, headless-server). If you have a custom deployment process or use GIF transformation in other applications, be aware to add this export. The Java 17 Base Image is prepared to add other add-exports or add-opens arguments if you need to via environment variables JAVA_ADD_EXPORTS and JAVA_ADD_OPENS.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.