对了,还是要数字签名。
一、 将工程打包为jar文件。
二、 打jar文件复制到E:\Apache\jdk1.3\bin。
三、 做两个数字签名文件:yqg.store、yqg.cent(文件名yqg自选)。
四、 keytool –genkey –keystore yqg.store –alias yqg
五、 keytool –export –keystore yqg.store –alias yqg –file yqg.cent
六、 jarsigner –keystore yqg.store text.jar yqg
七、 在E:\Apache\tomcat\webapps下建立一个index.html文件
八、 复制yqg.cent和yqg.store。
九、 内容:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>
HTML Test Page
</title>
</head>
<body>
untitled1.Applet1 will appear below in a Java enabled browser.<br>
<applet
codebase = "./"
code = "text.Applet1.class"
name = "TestApplet"
ARCHIVE = "text.jar"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
</body>
</html>
一、 将工程打包为jar文件。
二、 打jar文件复制到E:\Apache\jdk1.3\bin。
三、 做两个数字签名文件:yqg.store、yqg.cent(文件名yqg自选)。
四、 keytool –genkey –keystore yqg.store –alias yqg
五、 keytool –export –keystore yqg.store –alias yqg –file yqg.cent
六、 jarsigner –keystore yqg.store text.jar yqg
七、 在E:\Apache\tomcat\webapps下建立一个index.html文件
八、 复制yqg.cent和yqg.store。
九、 内容:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>
HTML Test Page
</title>
</head>
<body>
untitled1.Applet1 will appear below in a Java enabled browser.<br>
<applet
codebase = "./"
code = "text.Applet1.class"
name = "TestApplet"
ARCHIVE = "text.jar"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货