Thursday, 17 April 2025

How to install Javascript Engine in GraalVM - FollowUp

Things have changed compared to [3].

The GraalVM Updater was removed in GraalVM for JDK 21.[1] See issue 6855 [2].

Now we have to add Javascript using simple Maven dependencies that we add. See [4].

Also GraalVM seems to not like the Java standard scriptengine API, and support for it might go away soon.

References

[1] GraalVM Updater
https://www.graalvm.org/latest/reference-manual/graalvm-updater/
[2] [GR-46219] Remove the GraalVM Updater
https://github.com/oracle/graal/issues/6855
[3] How to install Javascript Engine in GraalVM
https://randomthoughtsonjavaprogramming.blogspot.com/2023/06/how-to-install-javascript-engine-in.html
[4] GraalVM - GraalJS
https://www.graalvm.org/latest/reference-manual/js/

No comments:

Post a Comment