getInferModulePath

Should a --module-path be inferred by analysing JARs and class folders on the classpath?

An entry is considered to be part of the module path if it meets one of the following conditions:

  • It is a jar that contains a 'module-info.class'.
  • It is a class folder that contains a 'module-info.class'.
  • It is a jar with a MANIFEST that contains an 'Automatic-Module-Name' entry.