concept main module in category java

appears as: main module, main module
The Java Module System

This is an excerpt from Manning's book The Java Module System.

The other exception is monitor, which exports no packages. This makes sense because it sits, like a spider in a web, in the center of the module graph and coordinates the execution flow. As such, it has no API of its own that anybody else might want to call. Having the main module—which usually and fittingly contains the program’s main method—not export any packages is typical.

For the desktop application, that means you always use the --add-modules app option to make sure the graph contains all required modules and then select the module for the desired mode as the main module. For example: