/usr/java/default/bin/keytool -genkey -storepass <keystore password> -keypass <key password> -alias <alias name>Sign the JAR:
/usr/java/default/bin/jarsigner -storepass <keystore password> -keypass <key password> <JAR file> <alias name>-- JuttaFitzek - 06 Jan 2015