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

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

在 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 版本会更加困难。

非常感谢您对这个主题的任何帮助。

最佳答案

关于你的第一个问题
" 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.
希望有帮助。

关于java - Windows 上的 Java 控制面板如何与机器上安装的许多不同版本的 Java 结合使用?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25675911/

10-11 22:29
查看更多