What does it mean when hwkeytool returns “java.lang.Exception: Key pair not generated, alias already exists”?
If you do not specify the -alias option to hwkeytool, the default value of mykey is used. This message means that the keystore already contains an entry with the alias “mykey”. This entry might have been created using hwkeytool either without the -alias option or with -alias mykey specified. This entry also might have been created programatically using a Java KeyStore API.