Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JAR files not bit-identical

Tags:

java

jar

everytime i create one jar file with the same contents of the last one the md5 checksum always change. I believe that is about timestamps and creation dates but i want to have the certain reason. Thanks everyone.

like image 389
Sérgio Condeço Avatar asked Jan 29 '26 12:01

Sérgio Condeço


1 Answers

It may happens because your build procedure creates some files every time you run it. For example MANIFEST.MF located under META-INF may contain date, build number etc. So if it is important for you check manifest and other build-generated files.

like image 88
AlexR Avatar answered Jan 31 '26 02:01

AlexR