File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JVM Vs. JRE" Watch "JVM Vs. JRE" New topic


Saket Barve
Ranch Hand

Joined: Dec 19, 2002
Posts: 229
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,
Maulin Vasavada
Ranch Hand

Joined: Nov 04, 2001
Posts: 1873
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.
I agree. Here's the link:
subject: JVM Vs. JRE