• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is the JRE and the Java Virtual Machine the same?

 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the JRE and the Java Virtual Machine the same? How are they different.What are the components that comprise the JRE and JVM? If they are related in some way what is the relationship?


Varuna
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Virtual Machine, is part of the JRE. The JRE consists on the JVM, core Java classes, and other fundamental supporting files.
 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Garrett Rowe:
The Java Virtual Machine, is part of the JRE.

Or Is it the other way around, JRE is part of the Java Virtual Machine.Since Java Virtual Machine is a cloned software platform of the hardware platform on which it resides
The JRE consists on the JVM, core Java classes, and other fundamental supporting files.

Rather is it that the JVM consists of the JRE?


Varuna
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Varuna Seneviratna:

Rather is it that the JVM consists of the JRE?


Nope, Garret is right. The JVM is essentially the java.exe application. The JRE is java.exe plus rt.jar (which contains the API classes) and all the other support files, dynamic libraries, and tools that come with the JRE download.

No idea what you mean about the JVM being a clone of the platform it runs on. Or rather, I do have an idea what you mean, but it's wrong.
 
Garrett Rowe
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or Is it the other way around, JRE is part of the Java Virtual Machine.Since Java Virtual Machine is a cloned software platform of the hardware platform on which it resides


No.
 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ernest Friedman-Hill:



No idea what you mean about the JVM being a clone of the platform it runs on. Or rather, I do have an idea what you mean, but it's wrong.


Since the term virtual machine is used I thought JVM is a Software representation of the Hardware platform on which it resides, from your reply I think I am wrong, Is it all right if I think that it is just another software platform, that is used to compile and execute software applications


Varuna
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Varuna Seneviratna:


Since the term virtual machine is used I thought JVM is a Software representation of the Hardware platform on which it resides


It's a software implementation of a specific, idealized architecture that is the same no matter what hardware it runs on.
 
Varuna Seneviratna
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ernest Friedman-Hill:


It's a software implementation of a specific, idealized architecture that is the same no matter what hardware it runs on.


What do you mean by specific and idealized? By idealized I looked up in the Oxford Dictionary it says
to consider or represent sb/sth as being perfect or better than they really are
so relevant to our context do you mean perfect in regard to the hardware architecture and by specific is it special that you mean.

Varuna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic