简体   繁体   English

当我下载JDK时,预装的JRE会怎样?

[英]What happen to my pre-installed JRE when I download a JDK?

I am just interested, as far as I know if you want do some Java programming, you will need to download a JDK. 我只是感兴趣,据我所知,如果您想进行一些Java编程,则需要下载JDK。 As part of the JDK, it comes with the JRE. 作为JDK的一部分,它随JRE一起提供。 However, I think most Windows OS has pre-installed JRE already. 但是,我认为大多数Windows操作系统已经预先安装了JRE。 I have several questions: 我有几个问题:

  1. Does this mean this pre-installed version will get overwritten by the freshly downloaded and installed JRE? 这是否意味着该预安装版本将被新下载并安装的JRE覆盖?

  2. Does a JRE have a version eg JRE-7,JRE-8? JRE是否具有JRE-7,JRE-8等版本?

  3. If there is version for the JRE and the pre-installed JRE gets overwritten, does that mean there is a risk that some old applications will not work anymore? 如果存在JRE的版本,并且预安装的JRE被覆盖,这是否意味着存在某些旧应用程序不再工作的风险?

1) This depends on your installation directory choice. 1)这取决于您的安装目录选择。

2) JRE is just a runtime part of the JDK (no compilers and tools) and thus is has the same versioning scheme as JDK. 2)JRE只是JDK的运行时部分(没有编译器和工具),因此具有与JDK相同的版本控制方案。

3) Java is developed in the way that guarantees backwards compatibility. 3)Java以保证向后兼容的方式开发。 However you can get incompatibility problems with tools like Maven or libraries like JAXB. 但是,您可能会遇到诸如Maven之类的工具或诸如JAXB之类的库的不兼容性问题。

Go to the Windows control panel, click Java , click the Java tab and then View. 转到Windows控制面板,单击Java ,再单击Java选项卡,然后单击查看。 You will see all of the versions of Java that have been installed. 您将看到已安装的所有Java版本。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM