Corrupt jar file

后端 未结 12 1130
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 03:42

I have created a jar file in windows 7 using eclipse. When I am trying to open the jar file it says invalid or corrupt jar file. Can anyone suggest me why the jar file is in

12条回答
  •  时光说笑
    2020-11-30 04:14

    As I just came across this topic I wanted to share the reason and solution why I got the message "invalid or corrupt jarfile":

    I had updated the version of the "maven-jar-plugin" in my pom.xml from 2.1 to 3.1.2. Everything still went fine and a jar file was built. But somehow it obviously wouldn't run anymore.

    As soon as i set the "maven-jar-plugin" version back to 2.1 again, the problem was gone.

提交回复
热议问题