4

我正在努力指定 Internet Explorer 将在我的 Windows 7 机器上安装的众多 Java 中的哪一个用于(1)运行小程序以及(2)用于 Java Web 启动。

例如,我将转到 Java 控制面板中的那个 Java-View 选项卡,更改那里的复选框,然后使 Java Console 在高级选项卡中可见,然后从控制台标题中找到并非总是 Java 已在 Java-View 中选中实际上是在我的浏览器中执行小程序。

在 Java 控制面板 Java-View 中,除了“用户”选项卡,还有一个“系统”选项卡。人们通常无法改变那里的任何东西,但这意味着什么,它有什么作用吗?

在 Java 控制面板高级选项卡中,您会看到“浏览器的默认 Java”复选框。为什么 Microsoft Internet Explorer 复选框总是被选中并且总是变灰?这个复选框重要还是 Java-View 选项卡屏幕,实际上影响 IE 操作?

同样在每个 java 安装的 jre/bin 文件夹中,我看到 javacpl.exe 文件并且可以执行它们中的每一个,但我猜只有其中一个出现在实际的计算机控制面板中。您如何确定,其中哪些是真正显示并可以通过我的计算机控制面板执行的?使用替代 javacpl.exe 可执行文件做任何事情是否有意义 - 它们的执行会影响我的 IE java 相关功能。

基本上,我对这种机制的工作原理完全感到困惑,如果有人能对上述问题的至少一部分做出澄清,我将不胜感激。我在这里主要谈论的是 Java 1.6 和 Java 1.7,我想如果我们尝试在这个问题中涵盖更旧的 Java 版本会更加困难。

非常感谢您在此主题上提供的任何帮助。

4

1 回答 1

0

关于你的第一个问题 " which one of the many java installations on my Windows 7 machine would be used by the Internet Explorer for (1) running applete as well as (2) for Java web start."

This can  be tested by making your applets contain Java 7 features like "Diamond Operator". Compile it by jdk 1.7 and then try to run in browser, if it runs then your browser is using 1.7 else 1.6.

第二个问题——

"In Java Control Panel Java-View along with the "User" tab, there is also a "System" tab. One usually cannot change anything there, but what does that mean, and does it play any role?"

回答- This is my guess that system tab will contain that option which is configured in JAVA_HOME environment variable OR it can that jdk which was installed more recently installed. Because offcourse default can be only one and not two.

第三个问题——

     "In Java Control Panel Advanced tab you see "Default Java for browsers" checkboxes. Why Microsoft Internet Explorer checkbox there is always checked and always grayed out? Is this checkbox important or is it Java-View tab screen, which actually affects IE operations?"

回答 - The option is grayed out because the option is already chosen for you and you need not specify that.

希望有帮助。

于 2014-12-15T04:01:55.010 回答