@@ -555,10 +555,12 @@ public List<String> getBuilderJavaArgs() {
555555 */
556556 public List <Path > getBuilderModulePath () {
557557 List <Path > result = new ArrayList <>();
558- // Non-jlinked JDKs need truffle and graal-sdk on the module path since they
559- // don't have those modules as part of the JDK.
558+ // Non-jlinked JDKs need truffle and word, collections, nativeimage on the
559+ // module path since they don't have those modules as part of the JDK. Note
560+ // that graal-sdk is now obsolete after the split in GR-43819 (#7171)
560561 if (libJvmciDir != null ) {
561- result .addAll (getJars (libJvmciDir , "graal-sdk" , "enterprise-graal" ));
562+ result .addAll (getJars (libJvmciDir , "enterprise-graal" ));
563+ result .addAll (getJars (libJvmciDir , "word" , "collections" , "nativeimage" ));
562564 }
563565 if (modulePathBuild ) {
564566 result .addAll (createTruffleBuilderModulePath ());
@@ -581,6 +583,13 @@ private List<Path> createTruffleBuilderModulePath() {
581583 jars .addAll (getJars (builderPath , "truffle-runtime-svm" , "truffle-enterprise-svm" ));
582584 }
583585 }
586+ /*
587+ * Non-Jlinked JDKs don't have truffle-compiler as part of the JDK, however the native
588+ * image builder still needs it
589+ */
590+ if (libJvmciDir != null ) {
591+ jars .addAll (getJars (rootDir .resolve (Paths .get ("lib" , "truffle" )), "truffle-compiler" ));
592+ }
584593
585594 return jars ;
586595 }
0 commit comments