Introduction
The example below shows how to create an (executable) jar from the command line:
// Create the jar file > jar cf myjar.jar MyClass.class // Sign it with the certificate named alias in the keystore > jarsigner -keystore .keystore -storepass password myjar.jar alias