Jar signing…

To sign a jar for javaws:

folder$ keytool -genkey -keystore myKeyStore -alias gert
folder$ keytool -selfcert -keystore myKeyStore -alias gert
folder$ jarsigner -keystore myKeyStore TheJar.jar gert

or use Ant with:

<!-- JAR -->
<target name="jar" depends="main_build"
description="Deploy application as a JAR file and sign it">
<jar destfile="${name}.jar">
<fileset dir="${build.dir}">
<attribute name="Main-Class" value="com.company.programs.TheProgram"/>

<!-- S I G N -->
<signjar jar="${name}.jar" keystore="../myKeyStore"
alias="gert" storepass="password"/>


~ by nambabwe on 2007/04/12.

%d bloggers like this: