Run Jar file after obfuscate with proguard got error

Hi Guys! I am testing Proguard to apply for all Java project in my company. But after I run obfucate code my jar file cannot run as normal. Could you please help me to check. Here is the error I got:

java -jar tuanna.jar
Exception in thread “main” java.lang.IllegalStateException: Failed to get nested archive for entry BOOT-INF/lib/spring-boot-starter-2.2.2.BUILD-SNAPSHOT.jar
at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchive(
at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchives(
at org.springframework.boot.loader.ExecutableArchiveLauncher.getClassPathArchives(
at org.springframework.boot.loader.Launcher.launch(
at org.springframework.boot.loader.JarLauncher.main(
Caused by: Unable to open nested jar file ‘BOOT-INF/lib/spring-boot-starter-2.2.2.BUILD-SNAPSHOT.jar’
at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(
at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(
at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchive(
… 4 more
Caused by: java.lang.IllegalStateException: Unable to open nested entry ‘BOOT-INF/lib/spring-boot-starter-2.2.2.BUILD-SNAPSHOT.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
at org.springframework.boot.loader.jar.JarFile.createJarFileFromFileEntry(
at org.springframework.boot.loader.jar.JarFile.createJarFileFromEntry(
at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(
… 6 more

And Here is the Configuration I used:


-injars       spring-boot-hello-world-example/target/spring-boot-hello-world-example-0.0.1-SNAPSHOT.jar
-outjars      tuanna.jar

-libraryjars /Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre/lib/rt.jar


Thanks in advance

Dear @tuanna2704 ,

Thanks a lot for posting your question here on the community!

To further assist you, could you please tell us how you are using Proguard? Based on the configuration file attached, I suppose you are using DexGuard Standalone, can you please confirm?
In addition, can you please check if this exception is thrown when you run the jar file you gave ProGuard as an input?

Kind regards,