我的对象标签嵌入 Java Applet 有什么问题? [英] What's wrong with my object tag to embed a Java Applet?

查看:17
本文介绍了我的对象标签嵌入 Java Applet 有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的对象标签.

    <object classid="java:my.full.class.Name.class"
            height="360" width="320">
        <param name="type" value="application/x-java-applet">
        <param name="archive" value="applets.jar">
        <param name="file" value="/report_files/1-1272041330710YAIwK">
        <param name="codebase" value="/applets">
    </object>

当我在 firefox 中运行它时,它只显示一个错误,点击查看详细信息.Java 控制台完全没有显示任何内容.在火狐的底部说Applet my.full.class.Name notloaded".Name.class 文件位于 applet.jar 文件中.我可以输入 URL/applet/applet.jar 并访问 jar 文件.怎么了?

When I run this in firefox it just shows up with an Error, click for details. The java console shows absolutely nothing. And at the bottom of fire fox is says "Applet my.full.class.Name notloaded". The Name.class file is in the applets.jar file. I can type the URL /applets/applets.jar and access the jar file. So whats wrong?

我也可以访问 param 文件,尽管我认为这不是问题所在.

I can access the param file as well, although I don't believe that is the issue.

我更新了标签,因为我注意到在我的 HTML 日志中它没有找到正确的位置.还是什么都没有

I updated the tag because I noticed in my HTML logs it wasn't looking in the right place. Still nothing though

推荐答案

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" 
    codebase="http://java.sun.com/update/1.6.0/jinstall-1_6-windows-i586.cab#Version=1,6,0,0"
    code="my.full.class.Name"
    archive="/applets/applets.jar" ... />

查看文档!

(并且您不得将 .class 添加到完全限定的类名)

(and you must not add .class to fully-qualified class names)

这篇关于我的对象标签嵌入 Java Applet 有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆