RuntimeService bean not found after upgrading to jdk17

after I upgrade JDK to 17, I am getting
required a bean of type ‘org.camunda.bpm.engine.RuntimeService’ that could not be found

Here is dependency I am using


Any idea how to resolve this

Appreciate any help on this topic.

Hello guy! :smiley:
This happens because for some reason Spring cannot find the bean.

  • First, did you adjust the POM XML for JDK version 17?

  • Is your JDK as a JAVA_HOME environment variable?

  • After making sure this, run maven again to load the dependencies, using the commands below in your terminal:

mvn clean

mvn install

If this still doesn’t work, try manually adding a RuntimeService bean.

For this, create a class containing a public function in your java project to return a RuntimeService and place @bean as an annotation.

public RuntimeService runtimeService(ProcessEngine processEngine) {
    return processEngine.getRuntimeService();

I hope I’ve helped you.

Big hug!

William Robert Alves