A minimal Java application that embeds JavaScript code with GraalJS.
Install GraalVM for JDK 23 and set the value of JAVA_HOME
accordingly.
We recommend using SDKMAN!. (For other download options, see GraalVM Downloads.)
sdk install java 23-graal
To build and test the demo, run:
./mvnw test
To execute the main method, run:
./mvnw exec:java
To build and test the demo, run:
./gradlew test
To execute the main method, run:
./gradlew run