From the user perspective, that's just an implementation detail. The goal is to execute JavaScript with some Java interop which both Nashorn and GraalJS do.
There is btw already since a very long time Project J2V8 (https://github.com/eclipsesource/J2V8) for developers who prefer to embed another full-fledged virtual machine instead of leveraging HotSpot for executing the JavaScript code. This approach however has severe downsides, which is why Graal.JS (https://www.graalvm.org/javascript/) has become the most popular way to embed JavaScript into Java applications.
View all comments
Show parent comment
4
u/repeating_bears Feb 26 '26
From the user perspective, that's just an implementation detail. The goal is to execute JavaScript with some Java interop which both Nashorn and GraalJS do.