This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
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

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
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
jQuery in Action, 3rd edition