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

Modular Programming

In this chapter, we will cover the following recipes:

  • Using jdeps to find dependencies in a Java application
  • Creating a simple modular application
  • Creating a modular JAR
  • Using a module JAR with pre-JDK 9 applications
  • Bottom-up migration
  • Top-down migration
  • Using services to create loose coupling between consumer and provider modules
  • Creating a custom modular runtime image using jlink
  • Compiling for older platform versions
  • Creating multirelease JARs
  • Using Maven to develop a modular application

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