For each IDL module, Java equivalents for all interfaces, types, and exceptions that are defined in the module are generated to a single Java package. The default Java package name is specified by the module’s name or its Javadoc package comment.
If the module has a line of this form in the doc comment, stubs are written in the specified Java package:
** <!-- javaPackage dotty-package -->
where dotty-package is the dot-format Java package name.
If the doc comment does not specify a Java package, stubs are generated to a package that matches the IDL module name. For example, stubs for module foo::bar are generated in Java package foo.bar.