Automatic modules
In order to avoid the problems with third-party library dependencies, which we just discussed, the Java platform has a mechanism to automatically create modules from JAR files. You don't need to access the library code or even create a module descriptor. All you need is the JAR file. This works great because, for any third-party library, the one thing that you are sure to have is the JAR file!
Okay, what does it take to convert a JAR file into an automatic module and drop them into your application? The answer is--nothing! All you need to do is drop any JAR file into the module path. The platform automatically converts it into a module. Here are the things that the platform does to every JAR that it encounters in the module ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access