Automatic module names

Alan Bateman Alan.Bateman at oracle.com
Wed Mar 9 19:09:30 UTC 2016



On 09/03/2016 18:53, Paul Benedict wrote:
> :
>
> So if commons-collections-4.0.0.jar is dropped into the module path, is the
> module name "commons.collections.4.0.0"?
>
>
Can you try `java -modulepath commons-collections-4.0.0.jar -listmods` 
to see the module name that is listed?

See also the javadoc for ModuleFinder.of [1] as that specifies how 
module names are derived.

-Alan

[1] 
http://download.java.net/java/jigsaw/docs/api/java/lang/module/ModuleFinder.html#of-java.nio.file.Path...-


More information about the jigsaw-dev mailing list