How to Determine which JARs are Used in an Application

前端 未结 4 1660
傲寒
傲寒 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:31

    If any of them are loaded dynamically, it's possible that automated tools will miss them. I would reset the access times on the files, run the application for some time (and make sure to invoke as much functionality as possible), and see which files were accessed and which were not. You may need to repeat this on each platform your application needs to run on, just in case.

提交回复
热议问题