03 March 2012

ProGuard - A case to disable shrink

Assume you are obfuscating a jar in a web application (say you deploy it on machines where you want to protect from decompile+disassembling).

If you come across the error message "The output jar is empty. Did you specify the proper '-keep' options?" , disable shrinking (as you may not have a valid main method entry point in a web application.