The `java --validate-modules` command-line option has changed in JDK 11 do not exit when there are no errors detected on the module path. The option can be used with the `--dry-run` option to scan the module path and exit before the main class executes.