Jre - Jvm

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SrikanthPrithvi
    New Member
    • May 2007
    • 5

    Jre - Jvm

    Hi to everybody,

    This is my first post on this group, so please be patience on this discussion,

    Initially i need to know the difference between a JVM and a JRE? can anyone explain this.
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by SrikanthPrithvi
    Hi to everybody,

    This is my first post on this group, so please be patience on this discussion,

    Initially i need to know the difference between a JVM and a JRE? can anyone explain this.
    Who'd have thought it? I googled for "jvm jre" and guess what it came up with?

    kind regards,

    Jos

    Comment

    • RedSon
      Recognized Expert Expert
      • Jan 2007
      • 4980

      #3
      Originally posted by JosAH
      Who'd have thought it? I googled for "jvm jre" and guess what it came up with?

      kind regards,

      Jos
      * Gasp *

      Comment

      • sumittyagi
        Recognized Expert New Member
        • Mar 2007
        • 202

        #4
        Originally posted by SrikanthPrithvi
        Hi to everybody,

        This is my first post on this group, so please be patience on this discussion,

        Initially i need to know the difference between a JVM and a JRE? can anyone explain this.
        JVM :- Java Virtual Machine.
        JRE :- Java Runtime Environment.

        The names are self explainatory. Even then I try to explain them. JRE includes every thing that is part of java when it is running the program. That is its runtime environment. Like you if you say how is your office environment, that includes every thing that is in context of your office. In the same way java Runtime environment is everything that is in context of java runtime.

        JVM is part of JRE. It interprets the class files you compiled by java compiler, and converts them into machine understandable form and passes those instructions to the machine. It is Just In Time(JIT) compiler.

        I think it must clear your doubts. for more information search google.

        Comment

        • SrikanthPrithvi
          New Member
          • May 2007
          • 5

          #5
          Initially thanks a lot for your effort to explain the things of JVM and JRE, and as u said JRE is the whole thing that can undertake from compilation to execution of java programs then how we can seperate the jvm and jre from there responsibilitie s and there functions they are assigned. can u me explain in this?

          Comment

          • sumittyagi
            Recognized Expert New Member
            • Mar 2007
            • 202

            #6
            Originally posted by SrikanthPrithvi
            Initially thanks a lot for your effort to explain the things of JVM and JRE, and as u said JRE is the whole thing that can undertake from compilation to execution of java programs then how we can seperate the jvm and jre from there responsibilitie s and there functions they are assigned. can u me explain in this?
            No! compilation is not the responsibility of JRE. it is the responisbility of JDK.
            To understand better, open the jre directory where you have installed jdk. open bin directory. there you can see a lot of exe files. out of those java.exe and javaw.exe are JVM and all other files constitute JRE.

            Let us take an analogy:- there is an office that contains employees, computers, and other resources/assets. Now there is a manager in the office. Manager actually defines the sequence of things to happen so that things become productive. although manager is a part of office, but office is nothing without a manager. in the same way jvm is a part of jre, but jre is nothing without jvm.
            Last edited by sumittyagi; May 3 '07, 04:42 AM. Reason: spelling mistake

            Comment

            • SrikanthPrithvi
              New Member
              • May 2007
              • 5

              #7
              well your explanation is nice and satisfactory and thanks a lot.

              Comment

              Working...