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 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Difference" Watch "Difference" New topic


chander shivdasani
Ranch Hand

Joined: Oct 09, 2007
Posts: 206

What is the difference between JRE, JDK, J2SDK ??

Enjoy, Chander
SCJP 5, Oracle Certified PL/SQL Developer
ram kumar
Ranch Hand

Joined: May 22, 2008
Posts: 146
Originally posted by chander shivdasani:
What is the difference between JRE, JDK, J2SDK ??


JRE is the Runtime Environment of java. (the JVM Exactly).

Simply ! j2sdk/jdk is the compiler that looks for correctness of code and syntax of the java language construct !

While JRE is the Java Virtual machine, that actually runs the code !

Discussion - the powerfull way to excellence!
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15093

First, the meanings of the abbreviations:

JVM = Java Virtual Machine
JRE = Java Runtime Environment
JDK = Java Development Kit
J2SDK = Java 2 Software Development Kit

The JVM is the engine that executes Java byte code. Note that the JRE is not exactly the same as the JVM, despite what ram kumar says. The JRE is the JVM plus supporting libraries etc. that are necessary to run Java programs. You could see the JVM as the engine, and the JRE as the complete car (including the engine) that you need to get anywhere.

The JDK is a set of tools that you need when you want to develop your own Java programs.

Normal users (non-programmers) need the JRE to be able to run Java programs on their computers.

Programmers need the JDK to be able to compile their own Java programs.

"J2SDK" is another name for JDK.

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