删除SUN_MICR.RSA,SUN_MICR.SF解决清单文件签名文件输入问题 [英] Delete SUN_MICR.RSA, SUN_MICR.SF solves manifest signature file entry problem

查看:193
本文介绍了删除SUN_MICR.RSA,SUN_MICR.SF解决清单文件签名文件输入问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将所有罐子重新包装到一个罐子中并运行一个大罐子时,出现以下异常

When I tried repacking all the jars into one jar, and run that one big jar, I got following exception

java.lang.SecurityException:签名文件条目javax/activation/MimeType.class的没有manifyingt节

java.lang.SecurityException: no manifiest section for signature file entry javax/activation/MimeType.class

在谷歌搜索后,我找到了一个可行的解决方案 http://www.coderanch.com/t/133070/Security/Jar-File-java-lang-SecurityException

After googling I found a working solution at http://www.coderanch.com/t/133070/Security/Jar-File-java-lang-SecurityException

解决方案是从jar的META-INF文件夹中删除SUN_MICR.RSA和SUN_MICR.SF文件.奏效了.

The solution is delete SUN_MICR.RSA and SUN_MICR.SF files from the META-INF folder in the jar. It worked.

我试图找出

此解决方案如何工作?

how does this solution work?

.但是没有找到答案.

因此,专家们,请帮助我了解幕后发生的事情.

So experts, please help me understand what goes on behind the scene.

推荐答案

另一个解决方法如下:

•解压缩activation.jar(由于mail.jar需要它,它应该在您的类路径中)

•unzip activation.jar (it should be in your classpath since mail.jar needs it)

•打开META_INF/MANIFEST.MF

•open META_INF/MANIFEST.MF

•复制粘贴所有看起来像这样的行

•Copy paste all the lines that look like

Name: javax/activation/MimeTypeParseException.class
SHA1-Digest: uxV3qLHRu5JTOFrHnJXm13AO+0M=

进入程序/罐子的菜单.

into your program/jar's manifeqt.

多田!它按预期工作.

这篇关于删除SUN_MICR.RSA,SUN_MICR.SF解决清单文件签名文件输入问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆