Can't run Graal with JDK 11

Andrew Haley aph at redhat.com
Tue May 1 17:09:52 UTC 2018


I get this when trying to AOT-compile using latest jdk-jdk and latest
Graal:

Exception in thread "main" java.lang.NoClassDefFoundError: jdk/internal/vm/compiler/word/WordBase
	at jdk.aot/jdk.tools.jaotc.GraalFilters.getSpecialArgumentAndReturnTypes(GraalFilters.java:112)
	at jdk.aot/jdk.tools.jaotc.GraalFilters.<init>(GraalFilters.java:119)
	at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:148)
	at jdk.aot/jdk.tools.jaotc.Main.run(Main.java:101)
	at jdk.aot/jdk.tools.jaotc.Main.main(Main.java:80)
Caused by: java.lang.ClassNotFoundException: jdk.internal.vm.compiler.word.WordBase

I think the problem is that jdk/internal/vm/compiler/word/WordBase is
in the module jdk.internal.vm.compiler, and Graal's "mx vm" command does

-upgrade-module-path=/local/graal/graal/compiler/mxbuild/modules/jdk.internal.vm.compiler.jar:/local/graal/graal/compiler/mxbuild/modules/jdk.internal.vm.compiler.management.jar

Unfortunately, jdk/internal/vm/compiler/word/WordBase is only present
in OpenJDK's version of the jdk.internal.vm.compiler module, and is
not present in Graal's jdk.internal.vm.compiler.

Suggestions?

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the graal-dev mailing list