This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes difference bertween JVM and JRE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference bertween JVM and JRE" Watch "difference bertween JVM and JRE" New topic
Author

difference bertween JVM and JRE

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
Hi All
I would like to know what is the difference between a JVM and JRE. I reckon JRE is 1 component of the JVM (correct me if i am wrong).
Could someone ellaborate

Rgrds
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I don't have "official" definitions, but here's a go ... see if it makes sense. The JVM is the Virtual Machine. Its whole job is to read byte code and interpret it. On Windows its in java.exe and javaw.exe. The JRE is the Runtime Environment. It includes the JVM plus supporting libraries. Java stuff is in jars, Windows stuff in dlls, other config files, Windows-specific files, etc. The JRE is everything you - or your customers - need to execute Java programs.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: difference bertween JVM and JRE