August 2017
Beginner
298 pages
7h 26m
English
We used jdeps to identify the usage of internal JDK APIs. The tool can do much more than that! One feature that comes in handy when migrating code to Java 9 is the -summary option. What this does is go through your compiled modules and identify the relationships between different modules. This makes sure that you get the right requires relationship specified in your modules, including the automatic modules.
Run the following jdeps command in the 11-migrating-application/02-migrating-to-one-module folder:
$ jdeps -cp lib/commons-collections4-4.1.jar -recursive -summary outcommons-collections4-4.1.jar -> java.baseout -> lib/commons-collections4-4.1.jarout -> java.baseout -> java.logging
The -recursive ...
Read now
Unlock full access