• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JVM Vs. JRE

 
Saket Barve
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic