File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Difference between JDK, JRE and JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Difference between JDK, JRE and JVM" Watch "Difference between JDK, JRE and JVM" New topic

Difference between JDK, JRE and JVM

Avishek Banerjee

Joined: Jul 11, 2006
Posts: 17
Please clarify the difference between JDK, JRE and JVM. Also, which of these can be independently implemented by people other than Sun. I have tried to get this clarification from many places, but non have satisfied me.

Avishek<br />SCJP 5.0 - 90%
Rajah Nagur
Ranch Hand

Joined: Nov 06, 2002
Posts: 239

You can't wake a person who is <b><i>pretending</i></b> to be asleep.<br />Like what <b>"it"</b> does not like - <i> Gurdjieff </i>
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Moving to Java In General (Beginner)

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15096

The JVM (Java Virtual Machine) is the engine that executes Java byte code.

The JRE (Java Runtime Environment) consists of the JVM plus everything around it that is needed to be able to run Java programs: an implementation of the standard Java API, etc.

The JDK (Java Development Kit) is the JRE plus the tools that you need to develop software in Java (the compiler and other tools).

Developers who want to write Java programs need the JDK. End users, who want to run software written in Java, need the JRE. Each of the three can be implemented by any person or company other than Sun.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Difference between JDK, JRE and JVM
It's not a secret anymore!