一:
c:\zzz\SignedAppletDemo>jar cvf myapplet.jar *.*
执行完此步后,在signedappletdemo文件夹下产生myapplet.jar文件,主要是.class文件二:
c:\zzz\SignedAppletDemo>keytool -genkey -keystore mystore.store -alias my.store
执行完此步后,目录下出现mystore.store文件,为密钥库,此密钥库别名为my.store。三:
c:\zzz\SignedAppletDemo>keytool -export -keystore mystore.store -alias my.store -file mycert.cer
执行完此步后,目录下出现mycert.cer文件,就是一张证书四:
c:\zzz\SignedAppletDemo>jarsigner -keystore mystore.store myapplet.jar my.store此步骤是对密钥库签名然后把myapplet.jar,mystore.store,mycert.cer复制到web目录下。这样当你的applet运行是回弹出安全证书,当用户接受时,你的applet便拥有了跳出sandbox 使用本地资源的能力