JDK and JRE
Developers use the JDK (Java Development Kit) to create Java applications, as it provides them with the required tools, libraries, and compilers.
End-users utilize the JRE (Java Runtime Environment) to run Java applications. The JRE offers a runtime environment and essential class libraries that are necessary for executing Java programs. However, it does not include any development tools.
What difference between JDK and JRE
KEY | JDK | JRE |
---|---|---|
DEFINITION | JDK is used for developing Java applications. It includes development tools like compilers and debuggers. | JRE is the implementation of the JVM and is designed to execute Java programs. |
FUNCTIONALITY | JDK is used for code execution and development purposes. | JRE is used to create an environment for executing Java code. |
DEPENDENCY OF PLATFORM | JDK’s compatibility is platform-dependent. | JRE’s compatibility is also platform-dependent. |
TYPE OF TOOLS | JDK includes tools for development and debugging purposes, such as compilers and debuggers. | JRE does not include development tools like compilers and debuggers. It provides class libraries and supporting files for program execution. |
IMPLEMENTATION | JDK is implemented as JRE along with additional development tools. | JRE consists of the JVM and other class libraries. |