When the JRE is a subset of the JDK, why should we download the JRE separately on the PC?

When the JDK already includes a JRE for code execution, why do I need to load the JRE separately to execute my java code, this is a doubt that bothers me

+4
source share
2 answers

As far as I remember, it depends on your OS, browser and JDK version.

Eg. if you are using a 64-bit OS and have installed a 64-bit JDK but are using a 32-bit browser, you may need to install a 32-bit JRE if you need Java support in the browser.

Otherwise, a separate installation of the JRE is not required, since installing the JDK also installs the JRE.

+3
source

JRE: Java. Java, Java-.

JDK: Java, JRE, (, JavaDoc Java Debugger) -.

Refer: http://javarevisited.blogspot.de/2011/12/jre-jvm-jdk-jit-in-java-programming.html

, .

JDK JRE?

+1

Source: https://habr.com/ru/post/1599356/


All Articles