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 diff between 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 "diff between JVM and JRE" Watch "diff between JVM and JRE" New topic

diff between JVM and JRE

mustang india
Ranch Hand

Joined: Feb 05, 2002
Posts: 60
whats the diff between a JVM and A JRE. Which one sits over the other.
Thanks a bunch.
Steve Deadsea
Ranch Hand

Joined: Dec 03, 2001
Posts: 125
A JRE (Java Runtime Environment) contains a JVM (Java Virtual Machine). It also contains libraries.
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
A "java-enabled" browser also invokes a JVM to execute the java code in and points to a JRE to find the Sun provided classes for the application to use.

"JavaRanch, where the deer and the Certified play" - David O'Meara
Jim Yingst

Joined: Jan 30, 2000
Posts: 18671
I think of the JRE as the files which are needed to run a JVM, which is an active process on your computer. You can install a JVM once on your machine, and then you can (if you want) run several simultaneous independent JVMs using those JRE files.
[ April 24, 2002: Message edited by: Jim Yingst ]

"I'm not back." - Bill Harding, Twister
I agree. Here's the link:
subject: diff between JVM and JRE
It's not a secret anymore!