The Java Developers Almanac 1.4


Order this book from Amazon.

   
Home > List of Packages > java.util.jar  [5 examples]

e384. Creating and Signing a JAR File Using jarsigner

    // 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

 Related Examples
e380. Listing the Entries of a JAR File Manifest
e381. Listing the Main Attributes in a JAR File Manifest
e382. Creating a Manifest for a JAR File
e383. Writing a JAR File Manifest to a File


© 2002 Addison-Wesley.