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

There's more...

We have seen quite a few options of the jdeps command. There are a few more related to filtering the dependencies and filtering the classes to be analyzed. Apart from that, there are a few options that deal with module paths.

The following are the options that can be tried out:

  • -e, -regex, --regex: These find dependencies matching the given pattern.
  • -f, -filter: These exclude dependencies matching the given pattern.
  • -filter:none: This allows no filtering applied via filter:package or filter:archive.
  • -filter:package: This excludes dependencies within the same package. This is the default option. For example, if we added -filter:none to jdeps sample.jar, it would print the dependency of the package to itself.
  • -filter:archive ...

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