我使用Safari5.1在Windows桌面上加载已签名的小程序,但它失败了,似乎JAVA插件没有启动。 像下面的html代码,我需要为Safari 5.1添加其他参数吗?还有其他方法可以在Safari中加载applet吗?谢谢。 系统是Windows,浏览器版本是Safari 5.1
<!--[if !IE]> Firefox and others will use outer object -->
<object classid="java:com.keithley.SCPI.SCPIApplet.class" type="application/x-java-applet;version=1.6" archive="../jar/SCPI.jar" height="480" width="640">
<param name = "scriptable" value = "true">
<!-- Konqueror browser needs the following param -->
<param name = "ARCHIVE" value = "../jar/SCPI.jar">
<!-- (Microsoft Internet Explorer) will use inner object -->
<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.6.0/jinstall-6u35-windows-i586.cab#Version=6,0,0,10"
height="480" width="640" >
<param name = "CODE" value = "com.keithley.SCPI.SCPIApplet.class">
<param name = "ARCHIVE" value = "../jar/SCPI.jar">
<param name = "type" value = "application/x-java-applet;version=1.6">
<param name = "scriptable" value = "false">
</object>
<!--[if !IE]> close outer object -->
</object>
答案 0 :(得分:0)
在另一个<object>
内尝试使用<embed>
和<object>
代替<object>
:
<object classid = "clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
codebase="http://java.sun.com/update/1.6.0/jinstall-6u35-windows-i586.cab#Version=6,0,0,10"
width="640" height="480" id="yourAppletId">
<param name = "code" value = "com.keithley.SCPI.SCPIApplet.class">
<param name = "archive" value = "../jar/SCPI.jar">
<param name = "mayscript" value = "true">
<param name = "scriptable" value = "true">
<param name = "type" value = "application/x-java-applet;version=1.6">
<comment>
<embed type = "application/x-java-applet;version=1.6"
code = "com.keithley.SCPI.SCPIApplet.class"
archive = "../jar/SCPI.jar"
scriptable = "true"
width = "640" height = "480"
name = "yourAppletId"
mayscript = "true"
scriptable = "true">
</embed>
</comment>
</object>
此外,如果您想检查java插件是否启动,您可以转到控制面板&gt; Java ,在 Java控制台选项中选择高级标签选择显示控制台单选按钮。
希望这有帮助,
答案 1 :(得分:0)
完成,实际上Windows中的Safari 5.1.7无法识别JAVA,当我们打开包含JAVA applet的页面时,它会弹出警告“Missing plug-in”。