Java 小程序无法在 IE8 上运行

发布于 2024-10-08 10:41:44 字数 1182 浏览 3 评论 0原文

当我在 Firefox 中运行小程序时,它可以工作,但在 Internet Explorer 8 中不起作用(但可以在 IE7 中工作)

使用的 Java 版本是 6,更新 18 (1.6.0_18)

Firefox 中 JVM 的输出是:

URL sin parametro: http://..../..../AppJava/
Parametro añadido a la URL codificado en UTF-8: ...IHgzC...
basic: Applet initialized
basic: Receptor de progreso suprimido: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1dd7056
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started
basic: Starting applet teardown
basic: Finished applet teardown

IE8 中 JVM 的输出为:

URL sin parametro: http://......./...../AppJava/
Parametro añadido a la URL codificado en UTF-8: ...IHgzCC.....
basic: Applet initialized
basic: Receptor de progreso suprimido:   sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@e86da0
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started

请注意,在 IE8 中,最后一行是“告诉客户端小程序已启动”,而在 Firefox 中是“已完成小程序拆卸”。

我还检查了 IE8 的安全设置,但我认为它们是正确的。

有什么想法吗?

谢谢

When I run an applet in Firefox it works but not in internet explorer 8 (but it works in IE7)

Java version in use is 6, update 18 (1.6.0_18)

Output of JVM in Firefox is:

URL sin parametro: http://..../..../AppJava/
Parametro añadido a la URL codificado en UTF-8: ...IHgzC...
basic: Applet initialized
basic: Receptor de progreso suprimido: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1dd7056
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started
basic: Starting applet teardown
basic: Finished applet teardown

Output of JVM in IE8 is:

URL sin parametro: http://......./...../AppJava/
Parametro añadido a la URL codificado en UTF-8: ...IHgzCC.....
basic: Applet initialized
basic: Receptor de progreso suprimido:   sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@e86da0
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started

Note that in IE8 the last line is "Told clients applet is started" while in Firefox is "Finished applet teardown".

I also checked the security settings of IE8 but I think they are correct.

Any idea?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

哭了丶谁疼 2024-10-15 10:41:44

IE 8 没有问题。它应该可以工作。
根据 java 控制台/jvm 消息,您的小程序正在运行。

java应该是兼容的==>建议您的浏览器java插件版本应等于或高于用于编译您的applet的java编译器的版本。

将一些 SoP 语句放入您的小程序中并再次检查。

* 下面是在 FF 和 FF 中运行小程序时的 Java 控制台消息示例。 IE 浏览器 *

java 控制台消息如下所示(FF 4 和 FF 3.x)

basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 125583 us, pluginInit dt 1492613 us, TotalTime: 1618196 us
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1f14ceb
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Finished applet teardown

*** ****** 在 IE 8 中 ****** **

basic: Applet loaded.                               
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 177363 us, pluginInit dt 390916 us, TotalTime: 568279 us
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@116471f
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started

It is nothing wrong with IE 8. It should be working.
As per the java console/jvm messages, your applet is running.

The java should be compatable==> it is recommended that your browser java plug-in version should be same or higher than the version of the java compiler used to compile your applet.

Put some S.o.P statements in your applet and check again.

* below is sample java console messages when you run applet in FF & IE browsers *

The java console message looks like below (FF 4 and FF 3.x)

basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 125583 us, pluginInit dt 1492613 us, TotalTime: 1618196 us
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1f14ceb
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Finished applet teardown

********* In IE 8 ********

basic: Applet loaded.                               
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 177363 us, pluginInit dt 390916 us, TotalTime: 568279 us
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@116471f
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started

谁的年少不轻狂 2024-10-15 10:41:44

对于 Windows
打开控制面板->然后点击JAVA
检查是否有任何更新可用,如果则更新
现在转到JAVA部分你看到这里
有一个java小程序运行时设置
并写道
当小程序在浏览器中执行时使用运行时设置
选择“查看”并确保路径正确...

最后打开“Internet 选项”转到“高级”选项卡:然后选择“使用 jRE for Applet”

就这样
希望这有帮助

For Windows
open Control Panel -> then click on JAVA
Check If Any Updates Are available Or Not if then Update
now Go to the JAVA section You see here
there is a java applet runtime setting
and written that
Runtime setting are used when applet executed in the browser
select on View And Just make sure the path is proper...

Finally Open Internet Options Go to Advanced Tab : And Select Use jRE for Applet

that's it
hope this helps

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文