Creating a Jar file from the command line.


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


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.