Java Magazine, Sept/Oct 2017
ORACLE COM JAVAMAGAZINE SEPTEMBER OCTOBER 2017 28 java 9 and macOS users should replace the carets in the commands with the backslash linecontinuation character when breaking the command across multiple lines The d option indicates that javac should place the compiled code in the specified folder in this case a mods folder that will contain a subfolder named com deitel welcome representing the compiled module The name mods is used by convention for a folder that contains modules Welcome apps folder structure after compilation If the code compiles correctly the WelcomeApp folders mods subfolder structure contains the compiled code see Figure 2 This is known as the exploded module folder because the folders and class files are not in a JAR Java archive file The exploded modules structure parallels that of the apps src folder described previously Well package the app as a JAR shortly Exploded module folders and modular JAR files together are module artifacts These can be placed on the module path a list of module artifact locations when compiling and executing modularized code Viewing the modules description You can use the java commands describe module option to display information from the com deitel welcome module descriptor Run the following command from the WelcomeApp directory Figure 2 Welcome apps mods folder structure java module path mods describe module com deitel welcome The resulting output is com deitel welcome pathContainingModsFolder mods com deitel welcome requires java base contains com deitel welcome
You must have JavaScript enabled to view digital editions.