Is there a tool that we could use to compare two Jars at Binary/Byte code level? [closed]

南笙酒味 提交于 2019-12-08 08:14:48

问题


The idea is to compare two jars and see if they were generated from same source and compare if they're identical at Binary/Byte code level. Also if they're both compiled with the same compiler i.e. Eclipse JDT or JIT etc compiler.

I've looked at Apache Common BCEL, but it only does comparison after decomposing the original byte-code into source code and then it compares it like diff tool; that compares text line-byline, but what I would like is to compare the byte-code without being decomposed/rearranged to source code and then compare.

I was looking at how we could compare straight binary/byte code comparison!!!!

Free tools/API recommendation would be good :) Ta


回答1:


you may try any of these following jar comparator tool as based on yours requirement..

extradata-product free for personal use

zardiff on sourceforge.

japi-compilance-checker os based

pkgdiff




回答2:


I like to use Beyond Compare (beware that it is not a free application)

http://www.scootersoftware.com/



来源:https://stackoverflow.com/questions/20742668/is-there-a-tool-that-we-could-use-to-compare-two-jars-at-binary-byte-code-level

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!