diff --git a/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java b/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java index 0b7eb0fea53c..6c6e95894a73 100644 --- a/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java +++ b/substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/NativeImage.java @@ -646,12 +646,13 @@ public List getBuilderJavaArgs() { */ public List getBuilderModulePath() { List result = new ArrayList<>(); - // Non-jlinked JDKs need truffle and word, collections, nativeimage on the - // module path since they don't have those modules as part of the JDK. Note - // that graal-sdk is now obsolete after the split in GR-43819 (#7171) + // Non-jlinked JDKs need truffle and word, collections, nativeimage, + // nativeimage-libgraal on the module path since they don't have those + // modules as part of the JDK. Note that graal-sdk is now obsolete + // after the split in GR-43819 (#7171) if (libJvmciDir != null) { result.addAll(getJars(libJvmciDir, "enterprise-graal")); - result.addAll(getJars(libJvmciDir, "word", "collections", "nativeimage")); + result.addAll(getJars(libJvmciDir, "word", "collections", "nativeimage", "nativeimage-libgraal")); } if (modulePathBuild) { result.addAll(createTruffleBuilderModulePath());