为什么 Java 安装在 (x86) 文件夹中?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34780628/
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
Why is Java installed in (x86) folder?
提问by ?amo
I installed new Java from https://www.java.com/en/but I am little confused about where installer store the java folder. It is stored in Program Files (x86). I don't understand what it means. I would like to to use 64-bit architecture. Why is it installed in (x86) program folder? Is that mean I am using 32-bit java?
我从https://www.java.com/en/安装了新的 Java,但我对安装程序存储 java 文件夹的位置有点困惑。它存储在程序文件 (x86) 中。我不明白这是什么意思。我想使用 64 位架构。为什么它安装在 (x86) 程序文件夹中?这是否意味着我使用的是 32 位 java?
回答by Tim Biegeleisen
Yes, it appears that you have installed the 32 bit version of Java. You can verify this by opening a Command Prompt, changing to the bin
directory of the Java install, and typing:
是的,您似乎已经安装了 32 位版本的 Java。您可以通过打开命令提示符、切换到bin
Java 安装目录并键入以下内容来验证这一点:
java -version
If you are running 64 bit Java 8 you would see something like this:
如果您运行的是 64 位 Java 8,您会看到如下内容:
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
java 版本“1.8.0_40”
Java(TM) SE 运行时环境(构建 1.8.0_40-b26)
Java HotSpot(TM) 64 位服务器 VM(构建 25.40-b25,混合模式)
You want to download the Windows version which is labelled Windows x64
.
您要下载标有Windows x64
.
Here is a linkwhere you can download it.
这是一个链接,您可以在其中下载它。