I’m trying to use ProGuard to obfuscate a Java application. I’m experiencing a problem where all of my text and images disappear from the GUI (Swing) forms. I’ve tried disabling optimizations and including more libraries, but nothing seems to be working.
I’ve inspected the output generated by the obfuscator with a decompiler, and my resource paths seem to still be correct.
- Do I need to be including more core Java libraries outside of jre/lib/rt.jar?
- Are there more settings I should disable?
- …other suggestions?
Thanks.
Most likely your resources are either (a) being accessed via a path which ProGuard is changing when the package containing the resource is obfuscated, or (b) being dropped because they are not copied to the output JAR.
You should not need to be explicitly including the Java runtime classes in your configuration.
You might want to look at the following options:
And see http://proguard.sourceforge.net/manual/examples.html#resourcefiles for more detail.