try{
SESecurityManager.initialise();
System.out.println( System.getProperty( "java.home" ));
String alias = "Azureus"; // SESecurityManager.DEFAULT_ALIAS;
// SEKeyDetails kd = SESecurityManager.getKeyDetails( alias );
// WUJarSigner signer = new WUJarSigner(alias, (PrivateKey)kd.getKey(), kd.getCertificateChain());
AEJarSigner2 signer =
new AEJarSigner2(
alias,
SESecurityManager.getKeystoreName(),
SESecurityManager.getKeystorePassword());
FileOutputStream fos = new FileOutputStream( "c:\\temp\\sj.jar");
signer.signJarFile( new File( "c:\\temp\\si.jar"), fos );
fos.close();
}catch( Throwable e ){
Debug.printStackTrace( e );
}
System.out.println("normal exit");