I am using Camunda 7.19 and JDK11 and want to switch to JDK17 and have the same problem with Javascript in DMN.
The Camunda Homepage lists under Supported Environments that JDK17 is supported!
So I added dependency to GraalVM as shown in https://forum.camunda.io/t/cant-find-scripting-engine-for-javascript-scriptengine-is-null-camunda-with-spring-boot-microservices/23282/7
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js</artifactId>
<version>23.0.2</version>
</dependency>
<dependency>
<groupId>org.graalvm.js</groupId>
<artifactId>js-scriptengine</artifactId>
<version>23.0.2</version>
</dependency>
With GraalVM DMN seems to work but following is written to stderr:
stderr: [To redirect Truffle log output to a file use one of the following options:
stderr: * '--log.file=<path>' if the option is passed using a guest language launcher.
stderr: * '-Dpolyglot.log.file=<path>' if the option is passed using the host Java launcher.
stderr: * Configure logging using the polyglot embedding API.]
stderr: [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
stderr: The guest application code will therefore be executed in interpreted mode only.
stderr: Execution only in interpreted mode will strongly impact the guest application performance.
stderr: For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
stderr: To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
stderr: [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
stderr: The guest application code will therefore be executed in interpreted mode only.
stderr: Execution only in interpreted mode will strongly impact the guest application performance.
stderr: For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
stderr: To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
stderr: [engine] WARNING: The polyglot context is using an implementation that does not support runtime compilation.
stderr: The guest application code will therefore be executed in interpreted mode only.
stderr: Execution only in interpreted mode will strongly impact the guest application performance.
stderr: For more information on using GraalVM see https://www.graalvm.org/java/quickstart/.
stderr: To disable this warning the '--engine.WarnInterpreterOnly=false' option or use the '-Dpolyglot.engine.WarnInterpreterOnly=false' system property.
Can I ignore this messages?