to do this open command prompt and enter a command
keytool -genkey -alias [alias-name] -keystore [keystore-name]
things in green are determined by you. Square Bracket´s "[]" are not necessary.
after the -alias write alias name, the name of your key, can be anything.
after -keystore write full path+ name of your keystore file.
e.g E:\Program Files\keystore-name
if this command is successful, there should be a file with the name u specified in the directory u specified.
after that you use the following command to sign a jar.
jarsigner -keystore [full path to your keystore file] [full path to your jar file] [name of the key(alias)]
note the spaces between commands and also, do not write "[]"´s
No comments:
Post a Comment