What is the reason behind putting two jre, one in jdk and one outsite jdk in the java folder in Program files

后端 未结 4 1727
灰色年华
灰色年华 2021-01-12 08:20

I have see two jre in the java folder one in jdk and one outside jdk. Can you tell me the what is the reason behind having these two jre?

4条回答
  •  自闭症患者
    2021-01-12 08:50

    If you're just running an application you only need the Java Runtime Environment (JRE), so it make sense to deliver that as a distinct entity.

    If you are developing the you need the complete Java Development Kit, and it's helpful to have everything you need including the JRE.

    So, two usage scenarios, two ways to get the JRE.

    See the question referenced by Jaya for more information.

提交回复
热议问题