如何判断我的 IE 是否为 64 位?(就此而言,Java 也是?)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2520948/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-13 08:45:52  来源:igfitidea点击:

How do I tell whether my IE is 64-bit? (For that matter, Java too?)

java

提问by user225626

Millions of questions already on the web about how to tell whether the OS is 64-bit, but not whether IE and/or Java runtime is 64-bit.

关于如何判断操作系统是否为 64 位,而不是 IE 和/或 Java 运行时是否为 64 位,网络上已经有数百万个问题。

Some background: I installed 64-bit Win 7, and IE installed automatically with it from CD; I didn't download IE.

一些背景:我安装了 64 位的 Win 7,并从 CD 自动安装了 IE;我没有下载IE。

I did download Java runtime. Mouseover tips in Control Panel!Programs shows it as: "Java 32-bit Java(TM) Control Panel"

我确实下载了 Java 运行时。控制面板中的鼠标悬停提示!程序显示为:“Java 32-bit Java(TM) Control Panel”

Then I went to http://java.com/en/download/manual.jspand that page says...

然后我去了http://java.com/en/download/manual.jsp那个页面说......

We have detected you may be viewing this page in a 32-bit browser. If you use 32-bit and 64-bit browsers interchangeably, you will need to install both 32-bit and 64-bit Java in order to have the Java plug-in for both browsers.

我们检测到您可能正在 32 位浏览器中查看此页面。如果您交替使用 32 位和 64 位浏览器,则需要同时安装 32 位和 64 位 Java,以便为这两种浏览器安装 Java 插件。

But I cannot tell in the aftermath whether my Java is 64-bit. Evidently the "Java(TM) Control Panel" is, but I don't know if that's the same as the runtime. (I'm afraid to ask on the offical Java forums, because they're such a-holes.)

但事后我无法判断我的 Java 是否为 64 位。显然“Java(TM) 控制面板”是,但我不知道这是否与运行时相同。(我不敢在官方 Java 论坛上提问,因为它们太坑了。)

Also, how do I issue a command to the OS to tell whether this IE is 64-bit?

另外,如何向操作系统发出命令以判断此 IE 是否为 64 位?

回答by SLaks

Normally, you run IE 32 bit.
However, on 64-bit versions of Windows, there is a separate link in the Start Menu to Internet Explorer (64 bit). There's no real reason to use it, though.

通常,您运行 IE 32 位。
但是,在 64 位版本的 Windows 上,开始菜单中有一个指向 Internet Explorer(64 位)的单独链接。但是,没有真正的理由使用它。

In Help, About, the 64-bit version of IE will say 64-bit Edition(just after the full version string).

在“帮助”、“关于”中,64 位版本的 IE 会显示64-bit Edition(就在完整版本字符串之后)。

The 32-bit and 64-bit versions of IE have separate addons lists (because 32-bit addons cannot be loaded in 64-bit IE, and vice-versa), so you should make sure that Java appears on both lists.

32 位和 64 位版本的 IE 具有单独的插件列表(因为 32 位插件无法在 64 位 IE 中加载,反之亦然),因此您应该确保 Java 出现在两个列表中。

In general, you can tell whether a process is 32-bit or 64-bit by right-clicking the application in Task Manager and clicking Go To Process. 32-bit processes will end with *32.

通常,您可以通过在任务管理器中右键单击应用程序并单击转到进程来判断进程是 32 位还是 64 位。32 位进程将以*32.

回答by Rob Heiser

For Java, from a command line:

对于 Java,从命令行:

java -version

will indicate whether it's 64-bit or not.

将指示它是否为 64 位。

Output from the console on my Ubuntu box:

从我的 Ubuntu 机器上的控制台输出:

java version "1.6.0_12-ea"
Java(TM) SE Runtime Environment (build 1.6.0_12-ea-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode)

IE will indicate 64-bit versions in the About dialog, I believe.

我相信 IE 会在“关于”对话框中指示 64 位版本。

回答by Jay R.

In addition to what TaskManager shows, if you use ProcessExplorerfrom Sysinternals, you can tell when you right-click on the process name and select Properties. In the Image tab, there is a field toward the bottom that says Image. It says 32-bit for a 32 bit application and 64 bit for the 64 bit application.

除了什么任务管理器显示,如果使用ProcessExplorerSysinternals的,你可以告诉你的时候对工艺名称上点击右键,选择属性。在图像选项卡中,底部有一个显示图像的字段。它表示 32 位应用程序为 32 位,64 位应用程序为 64 位。

回答by Raja Nagendra Kumar

Select Help->About

选择帮助->关于

for 64 bit.. it would say version as 64 bit Edition.

对于 64 位.. 它会说版本为 64 位版。

I see this in IE 9.. may be true with lesser versions too..

我在 IE 9 中看到了这一点.. 对于较小的版本也可能如此..

回答by user3055321

Rob Heiser suggested checking out your java version by using 'java -version'.

Rob Heiser 建议使用“java -version”检查您的 Java 版本。

That will identify the Java version that will be commonly found and used. Doing dev work, you can often have more than one version installed (I currently have 2 JREs - 6 and 7 - and may soon have 8).

这将标识将被普遍发现和使用的 Java 版本。在进行开发工作时,您通常可以安装多个版本(我目前有 2 个 JRE - 6 和 7 - 可能很快就会有 8 个)。

http://www.coderanch.com/t/453224/java/java/java-version-work-setting-path

http://www.coderanch.com/t/453224/java/java/java-version-work-setting-path

java -version will look for java.exe in the System32 directory in Windows. That's where a JRE will install it.

java -version 将在 Windows 的 System32 目录中查找 java.exe。这就是 JRE 将安装它的地方。

I'm assuming that IE either simply looks for java and that automatically starts checking in System32 or it'll use the path and hit whichever java.exe comes first in your path (if you tamper with the path to point to another JRE).

我假设 IE 要么只是查找 java 并自动开始检查 System32,要么它将使用路径并点击路径中第一个出现的 java.exe(如果您篡改了指向另一个 JRE 的路径)。

Also from what SLaks said, I would disagree with one thing. There is likely slightly better performance out of 64-it IE in 64-bit environments. So there is some reason for using it.

同样从 SLaks 所说的来看,我不同意一件事。在 64 位环境中,64-it IE 的性能可能稍好一些。所以使用它是有原因的。