Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JRE vs. JVM

 
Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Steve Morrow
Ranch Hand
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic