您的位置:首页 > 移动开发

applet在html中无法显示 解决方法

2009-12-25 17:35 274 查看
比如applet文件是AppletTest.class

1)

在AppletTest.java的代码中

使用默认包,即不用package语句

在html页中的代码是

<applet code="AppletTest.class" width="400" height="300">

</applet>

AppletTest.class文件和html页放在一个文件夹中

2)

在AppletTest.java的代码中

package xx.yy;

在html页中的代码是

<applet code="xx.yy.AppletTest.class" width="400" height="300">

</applet>

AppletTest.class文件放在xx/yy文件夹中

html页放xx文件夹的上层目录中
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: