Can't run Graal with JDK 11
Doug Simon
doug.simon at oracle.com
Tue May 1 18:45:49 UTC 2018
> On 1 May 2018, at 19:09, Andrew Haley <aph at redhat.com> wrote:
>
> 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?
It sounds like you are somehow running jaotc via mx. I'm not sure how this is even possible. As you can see, it doesn't work.
If not, what mx command are you running to produce this error?
-Doug
More information about the graal-dev
mailing list