How Do You Name a Module

How Do You Name a Module

The recommended way to name a module is to use the reverse-domain-name pattern that has long been recommended for naming packages. Furthermore, Mark Reinhold writes: Strongly recommend that all modules be named according to the reverse Internet domain-name convention.

What is module name in Eclipse?

In two tutorials, we introduced the new feature of modules in Java 9 and discussed creating a module in Eclipse IDE. A module is a set of named Java packages, resources, and native libraries; it provides modularization to the JDK. The module system is an implementation of the JSR 376: JavaTM Platform Module System.

How do you create a module in Java?

  1. Right-click the module source folder, then New module-info.java ; an empty module descriptor is created with a default module name as shown here:
  2. To create a new package, right-click the src folder, click New, and then click Package.
  3. Enter the package name ( eg.
Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.