Graal now works with JDK 9 Early Access Release

Doug Simon doug.simon at
Tue Nov 8 22:18:38 UTC 2016

In case you are new to Graal, please follow the directions at to see how to use JDK9 with Graal.

Due to the extra compile and run time options required to build and deploy Graal (and Truffle) as modules on JDK9, using mx is highly recommended. If you want to avoid using mx to launch the VM, run your command once with mx and the -v option to see the type of java launcher command you will need to use. For example:

dsimon at kurz-2 ~/h/graal-core> mx -v vm -XX:+BootstrapJVMCI -XX:+UseJVMCICompiler -version
/Library/Java/JavaVirtualMachines/labsjdk-9-ea+143/bin/java -server -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -d64 --add-exports=java.base/ --module-path=/Users/dsimon/hs/truffle/mxbuild/modules/ -XX:+BootstrapJVMCI -XX:+UseJVMCICompiler -version
Bootstrapping JVMCI.......................... in 9433 ms (compiled 2608 methods)
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+143)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+143, mixed mode)


> On 8 Nov 2016, at 15:31, Doug Simon <doug.simon at> wrote:
> Hi all,
> As of, Graal works with build 143 or later of a JDK9 Early Access Release[1].
> Please file issues at if you run into problem running Graal on JDK9.
> -Doug
> [1]

More information about the graal-dev mailing list