Delete SUN_MICR.RSA, SUN_MICR.SF solves the problem of entering the manifest signature file

When I tried to repack all the cans into one can and run this big can, I got the following exception

java.lang.SecurityException: there is no explicit section for writing the javax / activation / MimeType.class signature file

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

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

I tried to find out

how does this solution work?

. But there was no answer.

So, experts, please help me understand what is going on behind the scenes.

+3
source share
2 answers

, jar - script, :

• unzip activation.jar( , . jar)

• META_INF/MANIFEST.MF

• ,

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

/jar manifeqt.

! .

+2

, jar .jar, .

0

Source: https://habr.com/ru/post/1764969/


All Articles