1. 理由の説明
場合によっては、パッケージ化されたjar
ファイルは Linux と Windows の両方で正常にテストされますが、実装に送信された後に適切に実行できないことがあります。ファイルが破損していることが原因である可能性があります。
2.MD5検証
2.1 Windowsシステム
# 命令
certutil -hashfile filePath md5
# 实例
certutil -hashfile ./public.jar md5
# 结果
MD5 的 ./public.jar 哈希:
dab5535b5dc4b3e0a1150926a1528d52
CertUtil: -hashfile 命令成功完成。
2.2 Linuxシステム
# 命令
md5sum filePath
# 实例
md5sum ./public.jar
# 结果
dab5535b5dc4b3e0a1150926a1528d52 ./public.jar
Linux 環境と Windows 環境の同じファイルの md5 値は同じです。