Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JRE included with JDK vs. standalone JRE

Tags:

java

What's the difference between the JRE included with the JDK (located inside of the jre folder) and the standalone JRE? Is there any?

like image 337
Dave Avatar asked Mar 29 '10 21:03

Dave


People also ask

Is Java JRE included in JDK?

Download and install the Java Development Kit (JDK) for your platform. The JDK includes the JRE, so you do not have to download both separately.

Should I download JRE and JDK separately?

If you want to develop Java applications, download the Java Development Kit, or JDK. The JDK includes the JRE, so you do not have to download both separately. If you need the JRE on a server and do not want the ability to run RIAs, download the Java SE Server JRE.

Why JRE is not included in JDK?

Oracle no longer intends for end-users to be installing a JRE or a JDK. Java Applets in a browser and Java Web Start app delivery are both being phased out, leaving the end-user with no need for a JRE.

Is JRE included in JDK 11?

In Windows and macOS, installing the JDK in previous releases optionally installed a JRE. In JDK 11, this is no longer an option. In this release, the JRE or Server JRE is no longer offered.


1 Answers

The "standalone JRE" (sometimes also referred to as the "Public JRE") generally does not contain the server version of HotSpot. It also lacks the tools included with the JDK (JavaDB, javac, tools.jar, etc).

Otherwise, the runtimes are identical. Also, note that a JDK may install one (or more) JREs.

Finally, all of the above notes are in regards to Sun's Java installers for Windows. Other vendors and platforms may (and sometimes do) vary.

like image 109
jsight Avatar answered Sep 25 '22 06:09

jsight