How to Determine which JARs are Used in an Application

前端 未结 4 1654
傲寒
傲寒 2021-02-04 06:07

An existing application has a ton of JAR files in its classpath. Someone must have added all JARs initially just to be sure. Some of the JARs were obviously not being used and w

4条回答
  •  迷失自我
    2021-02-04 06:48

    Tattletale is a great tool for this. It works on the bytecode, so it is possible, that some classes are use via reflection and will not come up in the report.

    Here (link no longer works) is an example report. As you can see, you just have the feature you are looking for "Unused JAR".

提交回复
热议问题