Java Tools Tutorials - Herong's Tutorial Examples - v6.23, by Herong Yang
"java --describe-module" - Printing Module Definition
This section provides a tutorial example on how to use 'java --describe-module' command to print out the definition of a given Java module.
If you want to see what Java packages are exported from a given Java module, you can use the 'java --describe-module' command:
herong> javac --describe-module java.base java.base@12.0.1 exports java.io exports java.lang exports java.lang.annotation exports java.lang.invoke exports java.lang.module exports java.lang.ref exports java.lang.reflect exports java.math exports java.net exports java.net.spi exports java.nio exports java.nio.channels exports java.nio.channels.spi exports java.nio.charset exports java.nio.charset.spi exports java.nio.file ... exports javax.crypto exports javax.crypto.interfaces exports javax.crypto.spec exports javax.net exports javax.net.ssl exports javax.security.auth ... uses java.nio.file.spi.FileTypeDetector uses java.lang.System$LoggerFinder uses java.util.spi.LocaleNameProvider uses java.text.spi.BreakIteratorProvider uses java.util.spi.ResourceBundleProvider ... provides java.nio.file.spi.FileSystemProvider with jdk.internal.jrtfs.JrtFileSystemProvider qualified exports jdk.internal to jdk.jfr qualified exports jdk.internal.jmod to jdk.jlink jdk.compiler ... contains com.sun.crypto.provider contains com.sun.java.util.jar.pack contains com.sun.net.ssl ...
Table of Contents
javac - The Java Program Compiler
►java - The Java Program Launcher
java - Program Launching Command and Options
Launching Hello.java - My First Java Program
"java -classpath" - Specifying Class Path
"java -jar" - Specifying Executable JAR File
"java -X" - Specifying Non-Standard Options
"java --list-modules" - Listing Modules in JDK
►"java --describe-module" - Printing Module Definition
"java --module" - Launching Program from Module
"java --module" - Launching Program from Module JAR
javaw - Launching Java Programs without Console
jpackage - Binary Package Builder
javadoc - The Java Document Generator
jdeps - The Java Class Dependency Analyzer
jdeprscan - The Java Deprecated API Scanner
jcmd - The JVM Diagnostic Tool
jconsole - Java Monitoring and Management Console
jstat - JVM Statistics Monitoring Tool
jhsdb - The Java HotSpot Debugger
jvisualvm (Java VisualVM) - JVM Visual Tool
javap - The Java Class File Disassembler
keytool - Public Key Certificate Tool
jrunscript - Script Code Shell
native2ascii - Native-to-ASCII Encoding Converter