>javac SimplePaint.java
>jar cvf SimplePaint.jar SimplePaint.class
the following two steps are unnecessary. Just create a certificate
once and for all and keep using it. See
http://mindprod.com/jgloss/keytool.html
>keytool -delete -alias SimplePaint
>keytool -genkey -alias SimplePaint -validity 365
>jarsigner SimplePaint.jar SimplePaint
you can use set parameters to avoid typing the password every time.
here is what I typically use in a bat file.
jarsigner -storepass %jarsignerpassword %package%.jar cmprsacert
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.