Graal now works with JDK 9 Early Access Release
Doug Simon
doug.simon at oracle.com
Tue Nov 8 22:18:38 UTC 2016
In case you are new to Graal, please follow the directions at https://github.com/graalvm/graal-core/blob/master/README.md#building-graal 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/jdk.internal.module=com.oracle.graal.graal_core --module-path=/Users/dsimon/hs/truffle/mxbuild/modules/com.oracle.truffle.truffle_api.jar:/Users/dsimon/hs/graal-core/mxbuild/modules/com.oracle.graal.graal_core.jar -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)
-Doug
> On 8 Nov 2016, at 15:31, Doug Simon <doug.simon at oracle.com> wrote:
>
> Hi all,
>
> As of https://github.com/graalvm/graal-core/commit/be67a0e8c94ae01f7076bd76d244d84b120c571f, Graal works with build 143 or later of a JDK9 Early Access Release[1].
>
> Please file issues at https://github.com/graalvm/graal-core/issues if you run into problem running Graal on JDK9.
>
> -Doug
>
> [1] https://jdk9.java.net/download/
>
>
>
More information about the graal-dev
mailing list