This question is about the exact syntax of the JDK 14 "java" command.
The Oracle documentation states:
--module-path modulepath... or -p modulepath
A semicolon (;) separated list of directories in which each directory is a directory of modules.
while java --help on Ubuntu says:
-p <module path>
--module-path <module path>...
A : separated list of directories, each directory
is a directory of modules.
I tried it out using jar files and the separation by colon worked, it didn't work using semicolon. I used jar files, not directories. Is a jar file considered to be a "directory of modules"? Or is it just some undocumented feature that it is possible to use jar files instead of directories? Is there a relation to File.pathSeparatorChar?