idea的jar文件,“java.lang.SecurityException: Invalid signature file digest for Manifest main attribute

感谢大佬:https://blog.csdn.net/mingyuli/article/details/84674483

命令行运行jar出现问题:

1、找不到主类。打开jar文件包,在MANIFEST.MF文件中添加Main-Class: 包名.类名,

注意:包名前面有空格,类名没有.java或者.class后缀,最后一定要回车到下一行。让光标定位在空白行。

打开
在这里插入图片描述

2、java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

打开jar包文件中的META-INF目录,将*.SF,.DSA,.RSA文件删除,即可。应为有些包有签名,导致错误。
在这里插入图片描述

详解 : http://www.cnblogs.com/fuxinci/p/3356087.html

补充:https://blog.csdn.net/tongtong0704/article/details/53394183/
https://www.cnblogs.com/fuxinci/p/3356087.html

原文地址:https://www.cnblogs.com/tfxz/p/12621570.html