Search code examples
javajava-6

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


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?


Solution

  • 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.