Skip to content

Latest commit

 

History

History

graaljs-starter

GraalJS Quick Start

A minimal Java application that embeds JavaScript code with GraalJS.

Preparation

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

Run the Application Using Maven

To build and test the demo, run:

./mvnw test

To execute the main method, run:

./mvnw exec:java

Run the Application Using Gradle

To build and test the demo, run:

./gradlew test

To execute the main method, run:

./gradlew run