web start jar sign

生成keystore文件:
keytool -genkey -keystore aaa.keystore -alias aaa


jarsigner -keystore MYKEYSTO.store backport-util-concurrent.jar MYKEYSTO

注册密钥:
<?xml version="1.0" ?>

<project name="CLC" default="default">
	<property file="common.properties"/>
	<property name="lib" location="${dist.dir}/lib"/>
	
	<fileset dir="${lib}">
	    <filename name="**/*.jar"/>
	</fileset>
	
    <target name="sign-jars">
    	<echo level="info">Signing JARS...</echo>
		<signjar keystore="aa.keystore" alias="aa" storepass="password">
			<fileset dir="${lib}">
				<filename name="**/*.jar"/>
			</fileset>
		</signjar>		
    </target>      

	<target name="default" depends="sign-jars" />
</project>

你可能感兴趣的:(java,xml,Web)