英文:
I am Not able to find JRE files in Program Files?
问题
我正在尝试在我的 Windows 10 64 位操作系统中下载 JDK。一旦安装完成,我尝试设置路径。但是我无法在“Program Files”中找到 JRE 文件。但我希望 JDK 和 JRE 文件都在“Program Files”中。在我的同事系统中,JDK 安装在“Program Files”中。在他们的系统中,两个文件都在“Program Files”中,如下所示:
C:\Program Files\Java\jdk-1.8.0_51
C:\Program Files\Java\jre-1.8.0_251
但在我的系统中,文件如下所示:
C:\Program Files (x86)\Java\jre1.8.0_261
C:\Program Files\Java\jdk-14.0.2
路径应该采用我的同事的格式。请帮助我解决这个问题。
英文:
I am trying to download jdk in my windows 10 64 bit OS system. Once installation is completed I try to set the path. But I am not able to find the jre files in Program Files. But I want to jdk and jre both files to be in the Program files. In my colleagues systems jdk is installed in program files. In their system both files in Program Files like following:
C:\Program Files\Java\jdk-1.8.0_51
C:\Program Files\Java\jre-1.8.0_251
But in my system files look like following.
C:\Program Files (x86)\Java\jre1.8.0_261
C:\Program Files\Java\jdk-14.0.2
The path should be my colleagues format. Please help me on this.
答案1
得分: 2
首先,你的同事正在使用JDK 8。
下载Oracle JDK 8(LTS)在此处。
或者你可以使用Amazon Corretto JDK 8,这是一个不错的选择,因为它会自动为你设置环境。只需安装、开发和运行应用程序。
现在,JDK 包含了 JRE。因此,你不需要在系统上安装JRE。
将 JAVA_HOME
设置为 <JDK的路径>/bin
,或者将 JRE_HOME
设置为 <JDK的路径>/jre
。
就这样。
英文:
First of all, your colleague is using JDK 8.
Download Oracle JDK 8(LTS) for here.
https://www.oracle.com/in/java/technologies/javase/javase-jdk8-downloads.html.
Or you can use Amazon Corretto JDK 8 which is a nice choice as it automatically set environment for you. Just install, develop and run applications.
Now, JDK comes with JRE included. So, you don't need to install JRE on your system.
Set the JAVA_HOME
to <path of jdk>/bin
or JRE_HOME
to <path of jdk>/jre
That's all.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论