Java. Get dependencies list / names during runtime

I am debugging a Java App. It is built with gradle. I would like to check some libraries versions (which are loaded when the app is running - runtime).

For example, I use the library Apache POI. It requires poi-ooxml-3.17.jar. How do I check what version of the lib is loaded?

Do you know how to list all dependent libraries which are loaded on runtime?

So far, I have tried this. Intellijh Idea, debug, evaluate expression

// Example using HTMLEmail from Apache POI class

Class theClass = ZipPackagePropertiesMarshaller.class;

// Find the path of the compiled class...

Read More »

By: StackOverFlow - Tuesday, 13 March

Related Posts