1、applet的类文件和html文件放在一起,不会去类路径下面加载类。 2、appletviewer -J-Djava.security.policy=java.policy testApplet.htm(指定安全策略)。