Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JRE vrs. JVM

 
vijay shanker
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between both?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See #18 in the http://faq.javaranch.com/java/JavaBeginnersFaq
 
Diego Freniche
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think of it that way:
- JVM: Java Virtual Machine. The program that interpretes Java bytecode stored in .class files. In Windows, java.exe.
- JRE: Java Runtime Environment. A JVM is not enough. You need an implementation of the core Java APIs. As you need in C the shared libraries installed in your system.

In short:
JRE = JVM + core Java APIs (in jar format) + utils
 
Raees Uzhunnan
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The above postings are right !. Additionally if you are looking for java development, you need to download Java SDK (or called JDK ). This includes all the above and the tools to develop; compile ; debug and deploy

Raees
[ January 03, 2008: Message edited by: Raees Uzhunnan ]
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nice diagram:

http://java.sun.com/j2se/1.5.0/docs/

JRE - bracket on left

Java Virtual Machine - blue layer on bottom
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic