package Applet;import java.awt.*;
import java.applet.*;
public class MyApplet extends Applet{

public void init(){

}
public void paint(Graphics g){
g.drawString("this is a simple applet!", 50, 60);

}}test.htm的内容为
<html> <applet code=MyApplet width=300 height=300></applet></html>但是使用IE7运行后,早浏览器下边出现
载入Java小应用程序失败谢谢大家帮忙解决

解决方案 »

  1.   

    <html> <applet code=Applet.MyApplet width=300 height=300></applet></html>+DIRECTORY
    ------A.htm
    +-----Applet 
    ----------MyApplet.class
      

  2.   

    还是 载入Java小应用程序失败但是Eclipse里没有问题!
      

  3.   

    检查浏览器设置中 程序 关于 Java的部分
      

  4.   

    使用appletviewer 出现问题了
    载入:找不到类Applet.MyApplet。
      

  5.   

    +DIRECTORY
    ------A.htm
    +-----Applet  
    ----------MyApplet.class你的文件位置是不是这样的?是不是设置了classpath环境变量 set classpath看看,有的话去掉