开发者

How can I figure out which of the 200 linked JARs, my Eclispe project actually needs?

I am currently working in an very old Java Eclipse project which has a lot of JARs linked to it's build path.

I have noticed that several of them aren't being used by the project any more, meaning old libraries that has been forgotten when the code has evolved over the years.

A standard way to determine if the library is used, is to simply remove it and see if there are any compilation errors.

However, I have noticed that some libraries in the build path are invoked by reflection, meaning if I remove the library I won't get any compilation errors. But the project will crash due to not finding the code anymore. Problem is you don't know when that开发者_如何学Python can happen.

Is there a tool I can use to figure out which of all the linked JAR libraries I can safely remove, without getting compilation or reflection errors?


Check ClassPathHelper.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜