简体   繁体   English

为什么我的 JRE 位于 C:\Program Files (x86) 虽然它是 64 位版本?

[英]Why my JRE is in C:\Program Files (x86) although it's a 64-Bit build?

I downloaded JRE first.我先下载了JRE。 Then downloaded JDK.然后下载JDK。

My JRE is in this directory我的 JRE 在这个目录中

C:\Program Files (x86)\Java\jre1.8.0_291 C:\Program Files (x86)\Java\jre1.8.0_291

My JDK is in this directory我的 JDK 在这个目录中

C:\Program Files\Java\jdk-16.0.1 C:\Program Files\Java\jdk-16.0.1

Running java -version command yields the following:运行java -version命令产生以下结果:

C:\Program Files (x86)\Java\jre1.8.0_291\bin>java -version
java version "1.8.0_291"
Java(TM) SE Runtime Environment (build 1.8.0_291-b10)
Java HotSpot(TM) Client VM (build 25.291-b10, mixed mode, sharing)
C:\Program Files\Java\jdk-16.0.1\bin>java -version
java version "16.0.1" 2021-04-20
Java(TM) SE Runtime Environment (build 16.0.1+9-24)
Java HotSpot(TM) 64-Bit Server VM (build 16.0.1+9-24, mixed mode, sharing)

does that mean I have a duplicate JRE?这是否意味着我有一个重复的 JRE?
If so, why there is no JRE in C:\Program Files\Java\ ?如果是这样,为什么C:\Program Files\Java\中没有 JRE?

"If you want to run Java programs, but not develop them, download the JRE. If you want to develop Java applications, download the Java Development Kit, or JDK. The JDK includes the JRE, so you do not have to download both separately." "If you want to run Java programs, but not develop them, download the JRE. If you want to develop Java applications, download the Java Development Kit, or JDK. The JDK includes the JRE, so you do not have to download both separately 。”

reference: JDK 7 and JRE 7 Installation Guide https://docs.oracle.com参考:JDK 7 和 JRE 7 安装指南https://docs.oracle.com

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么我的程序文件说(x86)但我的处理器和操作系统是x64位 - Why do my program files say (x86) but my processor and operating system is a x64 bit Java程序文件(x86)和64位和32位程序文件 - Java program files (x86) and program files 64 bit and 32 bit Windows AMD的jdk / jre 5.0 64位下载是否可与Windows x86一起使用? - Will jdk/jre 5.0 64 bit download for windows AMD work with Windows x86? “C:\\ Program Files(x86)\\ Java \\ jre1.8.0_181 \\ lib \\ ext”中的JAR文件未显示在sulbimetext中 - JAR files in “C:\Program Files (x86)\Java\jre1.8.0_181\lib\ext” not showing up in sulbimetext JDK x64和JRE x86应用程序打开 - JDK x64 and JRE x86 application open java.lang.UnsatisfiedLinkError:dlopen在64位而不是32位上失败,而.so应该在x86中构建 - java.lang.UnsatisfiedLinkError: dlopen failed 64-bit instead of 32-bit while .so should be built in x86 java.lang.UnsatisfiedLinkError:无法在Windows x86机器上的32位JVM上加载64位SWT库 - java.lang.UnsatisfiedLinkError: Cannot load 64-bit SWT libraries on 32-bit JVM in Windows x86 machine Eclipse:无法加载JNI共享库“C:\ Program Files(x86)\ Java \ jdk1.7.0_15 \ bin \ .. \ jre \ bin \ client \ jvm.dll - Eclipse: Failed to load the JNI shared library "C:\Program Files(x86)\Java\jdk1.7.0_15\bin\..\jre\bin\client\jvm.dll Java Windows x64 中的串行 I/O 使用 JRE x86 - Java Serial I/O in Windows x64 using JRE x86 适用于Windows的Java JRE 64位下载? - Java JRE 64-bit download for Windows?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM