< prev index next >

jdk/test/java/security/modules/ModularTest.java

Print this page

        

@@ -135,11 +135,11 @@
             Map<String, String> vmArgs, String... options) throws IOException {
 
         final StringJoiner command = new StringJoiner(SPACE, SPACE, SPACE);
         vmArgs.forEach((key, value) -> command.add(key + value));
         if (modulePath != null) {
-            command.add("-mp").add(modulePath.toFile().getCanonicalPath());
+            command.add("--module-path").add(modulePath.toFile().getCanonicalPath());
         }
         if (classPath != null && classPath.length() > 0) {
             command.add("-cp").add(classPath);
         }
         if (clientModuleName != null && clientModuleName.length() > 0) {
< prev index next >