9.19.3 Module-related options
The Application Server has module-related options that are not supported or that have restrictions.
- Organization of this subsection
(1) Non-supported options
The following options are not supported by the Application Server.
-
--limit-modules
-
--module (or -m)
-
--patch-module
-
--upgrade-module-path
For details about each option, see the following Web page.
https://docs.oracle.com/en/java/javase/11/tools/java.html
(2) Options having restrictions
The following options have restrictions. For these options, do not specify modules in the JDK# as modules to be updated.
-
--add-exports
-
--add-opens
-
--add-reads
- #
-
Modules in the JDK are all modules described on the following Web page.
https://docs.oracle.com/javase/jp/11/docs/api/index.html
For details about each option, see the following Web page.
https://docs.oracle.com/en/java/javase/11/tools/java.html
The following shows usage examples that are subject to the restrictions.
- (Usage example 1)
-
--add-exports=java.base/jdk.internal.jimage=my.module
Do not specify the java.base module as a module to be updated.
- (Usage example 2)
-
--add-opens=java.base/jdk.internal.jimage=my.module
Do not specify the java.base module as a module to be updated.
- (Usage example 3)
-
--add-reads=java.logging=my.module
Do not specify the java.logging module as a module to be updated.