O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modularizing the calculator

  1. We cannot modularize the calculator until we have modularized all its dependencies. But modularizing its dependencies might be easier at times and not so at other times especially in cases where the dependency is from a third party. In such scenarios, we make use of automatic modules. We copy the non-modular JARs under the folder mlib and ensuring the name of the JAR is of the form <identifier>(.<identifier>)* where <identifier> is a valid Java identifier:
      $ cp ../7_top_down_migration_before/calculator/lib/jackson-      annotations-      2.8.4.jar mlib/jackson.annotations.jar       $ cp ../7_top_down_migration_before/calculator/lib/jackson-core-      2.8.4.jar      mlib/jackson.core.jar  $ cp ../7_top_down_migration_before/calculator/lib/jackson-databind- ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required