< prev index next >

jdk/test/tools/jlink/basic/BasicTest.java

Print this page

        

@@ -104,12 +104,12 @@
     }
 
     private void runJlink(Path image, String modName, String... options) {
         List<String> args = new ArrayList<>();
         Collections.addAll(args,
-                "--modulepath", jdkMods + File.pathSeparator + jmods,
-                "--addmods", modName,
+                "--module-path", jdkMods + File.pathSeparator + jmods,
+                "--add-modules", modName,
                 "--output", image.toString());
         Collections.addAll(args, options);
         int rc = jdk.tools.jlink.internal.Main.run(args.toArray(new String[args.size()]), new PrintWriter(System.out));
         if (rc != 0) {
             throw new AssertionError("Jlink failed: rc = " + rc);
< prev index next >