superblaubeere27/obfuscator

It has been compressed and nested jar files must be stored without compression. Please check the mechanism used to create your executable jar file

sdrgroup opened this issue · 1 comments

Bug Report

Expected Behaviour

After I obfusecated a simple file, Hello.jar, a obfusecated file was generated. But When I run it with java -jar, an error ocured as following exception:
Caused by: java.lang.IllegalStateException: Unable to open nested entry 'BOOT-INF/lib/spring-boot-jarmode-layertools-2.5.4.jar'. It has been compressed and nested jar files must be stored without compression. Please check the mechanism used to create your executable jar file
My computer is runing with JDK1.8, Ubuntu20.04.

The file need to be obfuscated is Hello-1.0-SNAPSHOT.jar, and the obfuscated file is Hello.jar, which is ziped in Hello.zip as following.
Hello.zip

After I rejar Hello.jar with command: jar cf0M Hello.jar, *, the new Hello.jar can work.