Java 小程序无法在 JRE7 下运行,控制台未显示错误 [英] Java applet won't run under JRE7, no error displayed in console

查看:22
本文介绍了Java 小程序无法在 JRE7 下运行,控制台未显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 7,64位,自从升级到JRE-7 32位,在IE9 32位或Chrome下,我无法运行这个.在 Applet 矩形内,我看到消息错误.单击以了解详细信息"

Under Windows 7, 64-bit, since upgrading to JRE-7 32-bit, under IE9 32-bit or Chrome, I can't run applets such as this one. Inside the Applet rectangle, I see the message "Error. Click for details"

点击小程序框(空白)会出现一个对话框:

Clicking on the applet box (blank) leads to a dialogue box:

Application Error 
DrawingLines.class
There was an error while executing the application. Click "Details" for more information.

点击详细信息"按钮打开Java控制台,但没有错误,只是

Clicking "Details" button opens the Java console, but there are no errors, just

Java Plug-in 10.3.0.5
Using JRE version 1.7.0_03-b05 Java HotSpot(TM) Client VM
User home directory = C:\Users\Blah
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to 
----------------------------------------------------

开发者的工具控制台在两个浏览器中都是空白的.

The developer's tools console is blank in both browsers.

如果我重新加载页面,最终会出现一种死锁,浏览器停止响应.

If I reload the page, I eventually get a kind of deadlock, where the browser stops responding.

知道为什么控制台没有显示错误吗?

Any idea why no error is showing in the console?

(编辑)因为我的 JRE 是 32 位的,所以 64 位版本的 IE9 不运行小程序.这是有道理的,浏览器会报告消息您的浏览器正在忽略 APPLET 标记"或类似消息.我使用的是 32 位 JRE,因为我开发了一些基于 JMF 的软件(仅与 32 位 JRE 兼容).

(edit) Because my JREs are 32-bit, the 64-bit version of IE9 doesn't run applets. This makes sense, and the browser reports the message "Your browser is ignoring the APPLET tag" or equivalent. I am using 32-bit JREs because I develop some software based on JMF (which is only compatible with the 32-bit JRE).

推荐答案

这是我为解决问题所做的:

Here's what I did to solve the problem:

Java 控制面板 -> Java 选项卡 -> 查看...(并管理 Java 应用程序和小程序的 Java 运行时版本和设置...)-> 查找

将搜索指向 Program Files 中的 Java 文件夹(为了更有效的搜索).就我而言,控制面板还发现了 JDK(我也已安装).它已经知道我在上面的问题中提到的两个 JRE.

Point the search to the Java folder in the Program Files (for a more efficient search). In my case, the control panel found additionally the JDKs (which I also had installed). It already knew about the two JREs I mentioned in the question above.

我接受了新的发现,小程序现在可以在 Chrome 和 IE9 中运行了.

I accepted the new findings and applets now work in Chrome and IE9.

我的理论是将浏览器链接到 JRE 的东西是不正确的(浏览器正在启动 JRE,因此我在小程序矩形中收到一个控制台和一条错误消息,但它不正确不知何故).再次扫描 JRE 以某种方式修复了故障.

My theory is that something linking browsers to JREs was not right (the browser was launching the JRE, hence I got a console and an error message in the applet rectangle, but it wasn't correct somehow). Scanning for the JREs again fixes the glitch somehow.

这篇关于Java 小程序无法在 JRE7 下运行,控制台未显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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