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 banking.util.jar

  1. Copy BankUtil.java from chp3/6_bottom_up_migration_before/banking_util/src/com/packt/banking to the location chp3/6_bottom_up_migration_after/src/banking.util/com/packt/banking. Two things to take a note of:
    • We have renamed the folder from banking_util to banking.util. This is to follow the convention of placing module related code under the folder bearing module name.
    • We have placed the package directly under the banking.util folder and not under src, again this is to follow the convention. And we would be placing all our modules under the src folder. 
  2. Create the module definition file module-info.java under chp3/6_bottom_up_migration_after/src/banking.util with the following definition:
        module ...

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