javascript ANT task no longer working in Oxygen-25.0
Posted: Mon Nov 07, 2022 7:07 pm
Hi,
When upgrading from Oxygen-24.1 (with bundled Java version Java SE 8u202) to Oxygen-25.0 (with bundled Java version OpenJDK Temurin 17.0.4.1), I'm stumbling on an ANT script in my project which invokes the Javascript task:
While this worked fine in Oxygen-24.1, Oxygen-25.0 is now throwing following error:
...with following debug pointer:
I realize this is a broader Java / ANT issue, but couldn't find much useful pointers on how to make my ANT script working again with Oxygen-25.0. I've tried including the ${oxygenHome}/lib/js.jar path explicitly in the ANT transformation's classpath, but that doesn't work.
Can anyone help me out?
Best,
Ron
When upgrading from Oxygen-24.1 (with bundled Java version Java SE 8u202) to Oxygen-25.0 (with bundled Java version OpenJDK Temurin 17.0.4.1), I'm stumbling on an ANT script in my project which invokes the Javascript task:
Code: Select all
<scriptdef name="replaceRegExp" language="javascript">
<attribute name="string"/>
<![CDATA[
// javascript code
]]>
</scriptdef>
Code: Select all
Transformation failed. Unable to create javax script engine for javascript
Code: Select all
Java 15 has removed Nashorn, you must provide an engine for running JavaScript yourself. GraalVM JavaScript currently is the preferred option.
Can anyone help me out?
Best,
Ron