How to fix Ant javascript tags for M1 Mac?

Viewed 554

Ant javascript tags don’t work on Big Sur Our ant script doesn’t work on our new M1 build machine doesn’t work because it has a javascript tag, and it javascript (Nashorn) was removed from Java in Java 15.

build.xml:5: Unable to create javax script engine for javascript

Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.

I have searched all over for a Nashorn or Graal that works with Java15 but can’t find anything. The https://github.com/graalvm/graalvm-ce-builds/releases skips from Java11 to 16.

Any idea how get our javascript tags working again?

0 Answers
Related