Comparing two .jar files

Viewed 159863

How do I compare two .jar files? Both of them have compiled .class files.

I want the difference in terms of method changes, etc.

14 Answers

Create a folder and create another 2 folders inside it like old and new. add relevant jar files to the folders. then open the first folder using IntelliJ. after that click whatever 2 files do you want to compare and right-click and click compare archives.

This application may be what you need, works great and display a simple GUI showing differences. Try Jarcomp

If you are using IntelliJ IDEA or Android Studio, add your jar files to a project under the libs folder. Then select the both jar files, right click then select "Compare Archives"

Related