Camunda does not start in Java 11 without compiler module

Hi All,
In a docker container we don’t want to deploy Java JDK with compiler module. Start of embedded Camunda fails because of NoClassDefFound NullType. This Class belongs to java.compiler. Is there a workaround or a solution.

Any help appreciated.

1 Like

Same problem here:

Error creating bean with name ‘processEngineFactoryBean’: FactoryBean threw exception on object creation; nested exception is java.lang.NoClassDefFoundError: javax/lang/model/type/NullType

We want to run Spring Boot Integration | docs.camunda.org inside a docker container that is based on a JRE base image. This seems not possible since camunda needs the java compiler at runtime. :face_with_raised_eyebrow:

We solved it by creating a jar with the relevant classes from java.lang.model and compiled it with --patch-module.

1 Like