GeeCON Prague 2014*
The moose likes Beginning Java and the fly likes Is the JRE and the Java Virtual Machine the same? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is the JRE and the Java Virtual Machine the same?" Watch "Is the JRE and the Java Virtual Machine the same?" New topic
Author

Is the JRE and the Java Virtual Machine the same?

Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167
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


Varuna Seneviratna
Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1296
The Java Virtual Machine, is part of the JRE. The JRE consists on the JVM, core Java classes, and other fundamental supporting files.


Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them. - Laurence J. Peter
Varuna Seneviratna
Ranch Hand

Joined: Jan 15, 2007
Posts: 167
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Garrett Rowe
Ranch Hand

Joined: Jan 17, 2006
Posts: 1296
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

Joined: Jan 15, 2007
Posts: 167
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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

Joined: Jan 15, 2007
Posts: 167
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
 
GeeCON Prague 2014
 
subject: Is the JRE and the Java Virtual Machine the same?