有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

小程序windows上的Java控制面板如何与机器上安装的许多不同版本的Java一起工作?

我正在努力指定我的Windows7机器上的许多java安装中的哪一个将被Internet Explorer用于(1)运行applete,以及(2)运行JavaWebStart

例如,我将转到Java控制面板中的Java视图选项卡,更改其中的复选框,然后使Java控制台在高级选项卡中可见,然后从控制台标题中发现,Java视图中选中的Java并不总是在我的浏览器中执行小程序

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

在Java控制面板高级选项卡中,您会看到“浏览器默认Java”复选框。 为什么Microsoft Internet Explorer复选框始终处于选中状态且始终呈灰色? 这个复选框是重要的还是Java视图选项卡屏幕,它实际上会影响IE操作

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

基本上,我完全搞不清楚这个机制是如何工作的,如果有人能对上述问题中的至少部分作出澄清,我们将不胜感激。我在这里主要讨论的是Java1.6和Java1.7,我想如果我们在这个问题中也讨论旧的Java版本,那就更加困难了

非常感谢你在这个问题上的帮助


共 (1) 个答案

  1. # 1 楼答案

    关于你的第一个问题 " 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.

    希望有帮助