aspose file tools*
The moose likes Beginning Java and the fly likes JVM Vs. JRE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JVM Vs. JRE" Watch "JVM Vs. JRE" New topic
Author

JVM Vs. JRE

Saket Barve
Ranch Hand

Joined: Dec 19, 2002
Posts: 229
Hi,
Can anyone explain to me the difference between Java Virtual Machine (JVM) and Java Runtime Environment (JRE)?
Since JVM executes Java programs I think it ought to contain a runtime enviroment too. So I don't see why Sun would want to provide a separate run time environment.
Awaiting feedback,
Saket
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1871
well
to me,
- JRE is Java Runtime "Environment" which defines/provides "java" command and all executables like jar,keytool etc...
- JVM is a operating system PROCESS that handles the running of a code. if u run three java programs in three shells/windows then there are three JVM process running.
- JVM uses JRE (java command for e.g.) to do things.
hope it helps.
regards
maulin
 
 
subject: JVM Vs. JRE