• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Is the JRE and the Java Virtual Machine the same?

 
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1296
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 213
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic