I've seen many topics about the Pack200 compression issue but I thought I would post a working example of this.
I am using Advanced Installer 9.9
The problem:
When using the Pack200 compression option with a java product, jar files are changed after decompression. One particular jar in the jre7u51 bundle (sunjce_provider.jar) was being broken to the point where the ability of our jsch jar to use the DH KeyPairGenerator was completely lost.
The solution:
Because we didn't want our exe to be 50% larger, we moved the sunjce_provider.jar to our system library folder (in Advanced Installer) and chose the Only from JRE bundle on the Pack200 compression option. Unfortunately we still increased the size of our exe by 30% b/c our system jar is no longer compressed.
I have an example project + resources example of this happening.
ZIP: https://www.dropbox.com/s/z84rxzj29p76c ... %20Bug.zip
You will notice that the size of sunjce_provider.jar changes from 194k to 190k after it is installed (jre7/lib/ext/sunjce_provider.jar is the before, Pack200Bug/jre/lib/ext/sunjce_provider.jar is the after).
This was a major thorn for us as compression was the last thing I would have suspected to be our problem. My development team tried many other solutions before finding this issue. Just simply breaking a jre bundle is pretty bad. I hope this gets addressed in the future. I didn't see any version change notes on this. Please correct me if it is fixed in a version later than 9.9.
FOLLOW US
Get the latest news in Application Packaging