How do I sign a JAR file using jarsigner?
Govind Seshadri There are many ways by which you can sign a JAR file using jarsigner. One way would be:
jarsigner -keystore C:workingmystore -signedjar sbundle.jar bundle.jar johnOn executing the command, you will be prompted for the store password and the private key password. Here, bundle.jar represents the jar file you'd like to sign using the private key of the user whose keystore alias is "john" in the keystore named "mystore" located in the directory c:working. For details, see the jarsigner documentation.