2012-12-04 59 views
-1

我在使用浏览器查看小程序时遇到此错误。有没有人经历过这个问题? enter image description hereJava Applet应用程序错误

这是保存为index.html的HTML文件。我已经在starApplet.class文件所在的bin文件夹中使用eclipse创建了它。

<html> 
<applet code="starApplet.class" width="500" height="500"> 
</applet> 
</html> 

回答

0

我不知道,如果你的文件名是对还是错,但假设它是正确的,你必须删除.class扩展名:

<html> 
    <applet code="starApplet" width="500" height="500"> 
    </applet> 
</html> 
+0

*“你要删除的.class扩展名:“*尽管删除扩展名是个好建议,但它不是强制性的。我遇到的每个JRE都会容忍'.class'扩展名。任何从** *编辑**的机会“你必须”**到** *“这是对”*“的好建议吗? –