📄 javaʵ
字号:
<P> <STRONG>(1)将java小程序打包</STRONG></P>
<P> jar cvf test.jar test.class</P>
<P><STRONG> (2)生成名为chinani.store的密钥库,别名为chinani</STRONG></P>
<P> keytool -genkey -keystore chinani.store -alias chinani</P>
<P> 密码:123456 (根据需要自己输入)</P>
<P> 以下根据需要输入,最后确认:y</P>
<P> <STRONG> (3)导出chinani.cer数字证书</STRONG></P>
<P> keytool -export -keystore chinani.store -alias chinani -file chinani.cer</P>
<P> 密码:123456 (根据需要自己输入)</P>
<P><STRONG> (4)对test.jar文件进行签名</STRONG></P>
<P> jarsigner -keystore chinani.store test.jar chinani</P>
<P> 密码:123456 (根据需要自己输入)</P>
<P> 最后写一个html文件,运行此文件即可自动下载安装运行java小程序</P>
<P> <html></P>
<P> <head></P>
<P> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"></P>
<P> <meta name="GENERATOR" content="Microsoft FrontPage 4.0"></P>
<P> <meta name="ProgId" content="FrontPage.Editor.Document"></P>
<P> <title>New Page 1</title></P>
<P> </head></P>
<P> <body></P>
<P> <!--能自动下载jre包--></P>
<P> <OBJECT </P>
<P> classid="clsid:CAFEEFAC-0014-0000-0000-ABCDEFFEDCBA"</P>
<P> WIDTH = 300 HEIGHT = 300 </P>
<P> codebase="jinstall-1_4_0-win.cab#Version=1,4,0,0"></P>
<P> <PARAM NAME = CODE VALUE = "test.class" ></P>
<P> <PARAM NAME = ARCHIVE VALUE = "test.jar" ></P>
<P> <PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4"></P>
<P> <PARAM NAME = "scriptable" VALUE = "false" ></P>
<P> </object></P>
<P> </body></P>
<P> </html></P><p><table width="90%" align="center"><tr><td><font color="red">文章出处: 中国电脑教育报</font></td></tr></table></p><table width="80%" border="0" cellspacing="10" cellpadding="10" align="center"><tr><td align="CENTER"><a href="javascript:window.close()">[关闭本窗口]</a></td></tr></table></td></tr></table><table width="770" border="0" cellspacing="0" cellpadding="0"><tr><td bgcolor="#99ccff"></td></tr></table></div><html><head><title>齐鲁热线</title><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link REL="stylesheet" href="/newimages/css/army.css"/></head><body text="#000000" leftmargin="0" topmargin="0"><table width="770" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" align="center"> <tr> <td colspan="2" align="center" height="25" style="font-size: 9pt"><a href="http://www.sd.cninfo.net/about/index.htm" target="_self"><font color="#000000">关于我们</font></a> | <a href="http://www.bdchina.com/service/ad.htm" target="_self"><font color="#000000">广告服务</font></a> | <a href="http://www.bdchina.com/service/handbook.htm" target="_self"><font color="#000000">宽带手册</font></a> | <a href="http://www.bdchina.com/service/private.htm" target="_self"><font color="#000000">隐私政策</font></a> | <a href="http://61.156.7.14/sdinfo/bbs.php" target="_self"><font color="#000000">意见反馈</font></a> </td> </tr></table><table width="774" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" align="center"> <tr> <td> <table align="right" width="587" class="nava" style="font-size: 9pt"> <tr> <td><font face="Arial, Helvetica, sans-serif" class="nava"> 鲁ICP证000001号 <br> 中国网通(集团)有限公司山东省分公司 齐鲁热线 版权所有<br> 临沂市分公司承办 </font></td> <td width="183"><img src="http://www.sdinfo.net/newimages/index/biaoshi.gif" width="40" height="48" border="0"></td> </tr></table> </td> </tr></table></body></html><script language="Javascript">document.write("<img src='http://61.156.7.19:9200/servlet/counter.counter?CID=74596379271364608&AID=1242610&refer="+escape(document.referrer)+"&cur="+escape(document.URL)+"' border='0' alt='' width='0' height='0'>");</script></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -