这有什么错我的对象标签中嵌入Java小程序? [英] What's wrong with my object tag to embed a Java Applet?
问题描述
下面是我的对象标记。
<对象的classid =java的:my.full.class.Name.class
高度=360的宽度=320>
< PARAM NAME =输入值=应用程序/ x-java的小程序>
< PARAM NAME =档案值=applets.jar>
< PARAM NAME =文件VALUE =/ report_files / 1-1272041330710YAIwK>
< PARAM NAME =codeBase的VALUE =/小程序>
< /对象>
在我这运行在Firefox它只是显示了错误,请点击了解详情。 Java控制台显示绝对没有。而在火狐狸的底部写着小程序my.full.class.Name notloaded。该Name.class文件是在applets.jar文件。我可以键入URL /applets/applets.jar并访问jar文件。所以,什么是错?
编辑:我可以访问参数文件为好,但我不认为这是问题。
编辑:我更新了标签,因为我在HTML日志中发现这不是找对了地方。还是什么都没有,虽然
<对象的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
归档=/小程序/ applets.jar... />
(你不能添加的.class
来完全合格的类名)
Here is my object tag.
<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>
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?
EDIT: I can access the param file as well, although I don't believe that is the issue.
EDIT: 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" ... />
(and you must not add .class
to fully-qualified class names)
这篇关于这有什么错我的对象标签中嵌入Java小程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!