Running jdeps on your code

The jdeps class dependency analysis tool is not new to Java 9, but perhaps has never been as important to developers with the advent of Java 9. An important step to migrating your applications to Java 9 is to run the jdeps tool to determine the dependencies your applications and its libraries have. The jdeps tool does a great job of suggesting replacements if your code has dependencies on any internal APIs.

The following screenshot shows the options available to you when using the jdeps analyzer:

Let's take a look at an example. Here is a simple Java class called DependencyTest:

    import sun.misc.BASE64Encoder; public ...

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.