Add java --dry-run
There are many new options for configuration where modules are loaded and
the set of modules that should be resolved at startup. It has been proposed
that we have some way to invoke
java and exit after VM is initialized.
This CCC proposes to add java --dry-run option.
See CCC-8136930 for the proposal to move the new JDK 9 options to full GNU-style options.
Add java --dry-run option. This option causes the launcher to stop short of running the main method. It will load the VM and also locates and loads the main class. It will report any error detected by the VM or module system initialization.
New java launcher option --dry-run create VM but do not execute main method