Skip to content Skip to sidebar Skip to footer

Use Java Class In Graal.js

Using Graal.js, how can I import a java class to script within JS? The following code works with Nashorn JJS, but does not work with Graal.js because there is no Java.type() in gra

Solution 1:

add the --jvm arg to the JS command to run Graal.js on JVM, this will allow access to Java objects.


Post a Comment for "Use Java Class In Graal.js"