It's not a secret anymore!
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "difference bertween JVM and JRE" Watch "difference bertween JVM and JRE" New topic

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

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
I agree. Here's the link:
subject: difference bertween JVM and JRE
It's not a secret anymore!