module path

The list of directories and jars where the compiler and the launcher look for modules.

In more detail

javac and java take --module-path, or -p, as they take -cp for the class path. A modular jar on the module path is a named module; a plain jar there becomes an automatic module. java -p mods -m module/class runs a module's main class.

Example

java -p out -m com.shop.app/com.shop.app.Main

Related terms

Taught in

References

Certification courses