wood burning stoves*
The moose likes Beginning Java and the fly likes JRE vs. JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JRE vs. JVM" Watch "JRE vs. JVM" New topic
Author

JRE vs. JVM

Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
Hi Guys !

Can anybody just through some light on what is the difference in JRE and JVM and please just don't say the full forms of two. Also if possible explain with an example

Cheers,
Rahul


Rahul Juneja
ThoughtClicks - http://techlabs.thoughtclicks.com
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

This has been explained a million times in this forum. The JVM is just the program the "simulated computer" on which Java bytecode runs. A JRE includes a JVM plus all the standard Java libraries and other bits and pieces that make up a full runtime environment.

A JVM is something like a computer with a blank disk. A JRE is like a computer with an OS installed.


[Jess in Action][AskingGoodQuestions]
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

The JVM is responsible for interpreting bytecode. The JRE is the entire environment (including the JVM) necessary for running Java applications (this includes classes, native code, etc.).

[EDIT] I'm too slow.
[ June 21, 2005: Message edited by: Steve Morrow ]
Satish Kumar
Greenhorn

Joined: Feb 18, 2005
Posts: 23
Well here is my interpretation of JVM , JRE

JVM is a part of JRE

JRE = JAVA API + JVM
&
JVM = CLASS LOADER + BYTE CODE CHECKER + INTERPRETER + SECURITY MANAGER + GARBAGE COLLECTOR

In simple words JRE provides the environment to run JAVA APPLICATIONS and implicitly JVM is also a part of it
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JRE vs. JVM
 
Similar Threads
Confusion in JRE, JVM and JDK
What is JVM ?
JVM implementation
Difference b/w JVM and JRE
difference between JRE & JVM