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

后端 未结 4 1731
灰色年华
灰色年华 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:33

    I didn't read your answer right and searched a little, here's an answer from somebody who seems to be Oracle staff:

    There are some differences which may explain what you are seeing. The JRE that is included with the JDK does not support Auto Update and it does not contain any product offerings as the standalone JRE does. The JRE and JDK are both built at the same time (approximately) from the source base.

    from https://forums.oracle.com/forums/thread.jspa?threadID=2277801


    Old Answer 32/64 Bit Windows

    If you are on Windows 7 64 Bit (or maybe other MS 64 Bit Systems) you need 2 JRE's. One for your 64 Bit Applications (Browser) and one for 32 Bit. They should have distinct Folder Names, ie: 64 Bit C:\Program Files\java\jre7 32 Bit C:\Program Files (x86)\java\jre7

提交回复
热议问题