Atomiqx Technologies Co.

What is the difference between JDK and JRE?

Share This Post

In layman terms: JDK is grandfather JRE is father and JVM is their son. [i.e. JDK > JRE > JVM ]

JDK = JRE + Development/debugging tools

JRE = JVM + Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries.

JVM = Class loader system + runtime data area + Execution Engine.

In other words if you are a Java programmer you will need JDK in your system and this package will include JRE and JVM as well but if you are normal user who like to play online games then you will only need JRE and this package will not have JDK in it.

JVM :

The Java Virtual Machine (JVM) is the virtual machine that run the Java bytecodes. The JVM doesn’t understand Java source code, that’s why you compile your *.java files to obtain *.class files that contain the bytecodes understandable by the JVM. It’s also the entity that allows Java to be a “portable language” (write once, run anywhere). Indeed there are specific implementations of the JVM for different systems (Windows, Linux, MacOS, see the wikipedia list..), the aim is that with the same bytecodes they all give the same results.

JDK and JRE

To explain the difference between JDK and JRE, the best is to read the Oracle documentation and consult the diagram :

Java Runtime Environment (JRE)

The Java Runtime Environment (JRE) provides the libraries, the Java Virtual Machine, and other components to run applets and applications written in the Java programming language. In addition, two key deployment technologies are part of the JRE: Java Plug-in, which enables applets to run in popular browsers; and Java Web Start, which deploys standalone applications over a network. It is also the foundation for the technologies in the Java 2 Platform, Enterprise Edition (J2EE) for enterprise software development and deployment. The JRE does not contain tools and utilities such as compilers or debuggers for developing applets and applications.

Java Development Kit (JDK)

The JDK is a superset of the JRE, and contains everything that is in the JRE, plus tools such as the compilers and debuggers necessary for developing applets and applications.

Note that Oracle is not the only one to provide JDK.

JIT Compile Process (Courtesy: Oracle documentation)

JDK > JRE > JVM” /></a></p>
<p><a href=enter image description here

Source

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Tech Innovation – Blog

To discuss the benefits of telemedicine in healthcare, it is essential to understand what telemedicine is or how it is applied. Telemedicine is any medical

Access Denied

Access Denied You don’t have permission to access “http://www.weforum.org/stories/2021/06/4-technologies-accelerating-green-hydrogen-revolution/” on this server. Reference #18.52680117.1733119202.b9f333f7 https://errors.edgesuite.net/18.52680117.1733119202.b9f333f7 Source

Do You Want To Boost Your Business?

drop us a line and keep in touch

Discover more from Atomiqx Technologies Co.

Subscribe now to keep reading and get access to the full archive.

Continue reading