(转载)
<h4>Sign an applet</h4>
You need to obtain a certificate from a trusted source. 
<p>A Certificate for developer can be purchased for about $200 
(with $100/year to renew it), see <a href="http://www.thawte.com">
Thawte certification</a> for example. <i>For non US citizen, it can be difficult to
obtain a certificate from US based trusted source, because of the exportation 
limitation imposed on encryption technique.</i> Certificates used to sign email 
are not secured enough to sign applets, they are CLASS 1 certificate, you need 
something like CLASS 3 to be able to sign an applet.
<p>Signing an Applet means signing the JAR containing the Applet. 
To sign a JAR, you need tools provided 
by <a href="http://www.netscape.com">Netscape</a>. Zigbert is a command-line 
utility. Also a GUI JAR packager can be used to sign JARS. You may look at this
<a href="java-e1.html#e7">JAVA How-to</a> for infos about JAR file.
<p>Sun's JAVAKEY utility can't be used to produce/sign certificate/JAR compatible 
for the Netscape security manager. Read the <a href="http://developer.netscape.com/support/faqs/champions/security.html">
Netscape's security FAQ</a> or <a href="http://developer.netscape.com/library/documentation/signedobj/overview.html">
Netscape OBJECT SIGNING RESOURCES</a> for more informations.
<p>Once the Applet signed, we must use the netscape.security (also called Capabilities) 
package to grant/remove privileges. This package is included with Netscape v4 or 
can be downloaded from the <a href="http://www.netscape.com">Netscape Web site</a>.
<p>When compiling a JAVA source containing references to the Capabilities class, we must 
adjust to CLASSPATH to include the JAR <i>java40.jar</i> (with v4).
<TABLE bgcolor="#FFFFCC" WIDTH="600"><TR><TD><pre>
set CLASSPATH=
   .;c:\windev\jdk1.1.3\lib\classes.zip;
       c:\Program Files\Netscape\Communicator\Program\Java\Classes\java40.jar;</table></pre>

解决方案 »

  1.   

    但这要200美元啊!!听说也有java applet病毒,它总不会要认证吧。
    或者applet可不可以读取同一叶面上的图像元素??
    谢谢
      

  2.   

    但这要200美元啊!!而且客户端还有ie,听说也有java applet病毒,它总不会要认证吧。
    或者applet可不可以读取同一叶面上的图像元素??
    谢谢
      

  3.   

    为了签名,jdk的jarsigner工具也可以(如果你只是用于学习目的)