JDK, JRE and JVM in Java

Heeah
1 min readDec 30, 2023

--

JDK(Java Development Kit)

The JDK is a software development kit that contains everything in the JRE, plus tools such as compiler, debugger, Javadoc…for developing and running Java programs or applications.
JDK is a platform-specific software and that’s why we have separate installers for Windows, Mac, and Unix systems.

JRE(Java Runtime Environment)

JRE provides the libraries, the JVM, and other components to run applets and applications written in the Java programming language.
If you just want to execute a java program, you can install only JRE. You don’t need JDK because there is no development or compilation of java source code is required.

JVM(Java Virtual Machine)

When you run the Java program, the Java compiler first compiles your Java code to byte code. Then, the JVM translates byte code into native machine code. JVM is an instance of JRE, and provides an interface that does not depend on the underlying operation system and machine hardware.

https://docs.oracle.com/javase/8/docs/index.html

--

--