In this article, let’s look at how to use Javascript as a scripting language in Camunda with the introduction of Java 15, where the Nashorn Javascript Engine is removed from Java.
Pre-requisite
- Java 15+
- Eclipse IDE – Used in this article to switch between Java versions from demonstration
- Camunda 7.16
Background
Java 8 introduced Nashorn Javascript Engine, and Camunda is using the same to process scripts written in Javascript. With the introduction of Java 15 (supported by Camunda v7.16+), Nashorn Javascript Engine is removed. Camunda v7.16+ now supports GraalVM Javascript as a Javascript engine as well.