I am getting the error in java security class while trying to generate a new certificate when i use the Pack200 to compress. If the compress in not selected, it is working fine.
I am giving my java code sample below.
import java.security.KeyPairGenerator;
0. public static X509Certificate generateCertificates(final String issuerName) throws Exception{
// Generate the EC public/private key pair
1. final keysGenerator keysGenerator = KeyPairGenerator.getInstance("RSA", "BC");
2. kpg.initialize(<int number>);
3. KeyPair kpair = kpg.generateKeyPair();
---
---
}
For getting the generated exe compressed, I have selected the below options from the AdvancedInstaller 9.8
In AdvancedInstaller 9.8, Java Products (Left Pane) --> Setting (right Pane) --> and selected the options "Use Pack200 to compress JAR files" and "Verify JAR files signature before and after packing". If I do this, i am getting an error as "java.security.NoSuchProviderException: no such provider: BC" at line 1. in the above code. The jar for this statement is rt.jar in jre6
Not able to understand how the compression is effecting this statement. I am struck of with this blocker and pending with my fixes. Please suggest me on this and Please let me know if I can provide more information on this.
FOLLOW US
Get the latest news in Application Packaging