Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Internet of Things
  4. What is the difference between JDK, JRE, and JVM?

What is the difference between JDK, JRE, and JVM?

Scheduled Pinned Locked Moved Internet of Things
questionjava
8 Posts 8 Posters 54 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    samratcoolers
    wrote on last edited by
    #1

    What is the difference between JDK, JRE, and JVM?

    L Richard DeemingR B S J 6 Replies Last reply
    0
    • S samratcoolers

      What is the difference between JDK, JRE, and JVM?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      See The Java™ Tutorials[^]

      Y 1 Reply Last reply
      0
      • S samratcoolers

        What is the difference between JDK, JRE, and JVM?

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3

        The second and third letter. (If you want serious answers, then you need to learn how to ask better questions, and do your own basic research first.)


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        1 Reply Last reply
        0
        • S samratcoolers

          What is the difference between JDK, JRE, and JVM?

          B Offline
          B Offline
          Beleggen voor Beginners
          wrote on last edited by
          #4

          What's the context?

          1 Reply Last reply
          0
          • L Lost User

            See The Java™ Tutorials[^]

            Y Offline
            Y Offline
            yacht Boating
            wrote on last edited by
            #5

            i need to know too

            1 Reply Last reply
            0
            • S samratcoolers

              What is the difference between JDK, JRE, and JVM?

              S Offline
              S Offline
              shubhi das 2023
              wrote on last edited by
              #6

              JVM: JVM (Java Virtual Machine) is an abstract machine. It is called a virtual machine because it doesn't physically exist. It is a specification that provides a runtime environment in which Java bytecode can be executed. It can also run those programs which are written in other languages and compiled to Java bytecode. JVMs are available for many hardware and software platforms. JVM, JRE and JDK are platform dependent because the configuration of each OS is different from each other. However, Java is platform independent. There are three notions of the JVM: specification, implementation, and instance. The JVM performs the following main tasks: - Loads code - Verifies code - Executes code - Provides runtime environment JRE: JRE is an acronym for Java Runtime Environment. It is also written as Java RTE. The Java Runtime Environment is a set of software tools which are used for developing Java applications. It is used to provide the runtime environment. It is the implementation of JVM. It physically exists. It contains a set of libraries + other files that JVM uses at runtime. The implementation of JVM is also actively released by other companies besides Sun Micro Systems. JDK: JDK is an acronym for Java Development Kit. The Java Development Kit (JDK) is a software development environment which is used to develop Java applications and applets. It physically exists. It contains JRE + development tools. JDK is an implementation of any one of the below given Java Platforms released by Oracle Corporation. - Standard Edition Java Platform - Enterprise Edition Java Platform - Micro Edition Java Platform The JDK contains a private Java Virtual Machine (JVM) and a few other resources such as an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator (Javadoc), etc. to complete the development of a Java Application.

              1 Reply Last reply
              0
              • S samratcoolers

                What is the difference between JDK, JRE, and JVM?

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #7

                JDK = Java Development Kit, basically it's the SDK (Software Development Kit) of the Java world. Long story short, it'll contain the libraries and tools needed to help build a Java application. It also ships with the JRE, but contains so much more. You'll need to install this on your development machine. JRE = Java Runtime Environment, this will need to be installed to run a Java application on a non-development machine. It'll contain the pre-built binaries that even the JDK will use and there will be some overlap as far as while goes into it when compared to the JDK. But, you'll need to install this on your end users machines. They won't need all the tools a developer does and this installed only what's needed to run an application. JVM = Java Virtual Machine, Java compiles down to a bytecode and not native code. The VM is what reads the bytecode and runs it on the computer. Anything written in Java must be ran through this and both the JDK and JRE will install it as an application or library cannot run without it.

                Jeremy Falcon

                1 Reply Last reply
                0
                • S samratcoolers

                  What is the difference between JDK, JRE, and JVM?

                  R Offline
                  R Offline
                  Rohan Saadat
                  wrote on last edited by
                  #8

                  JDK, JRE, and JVM are all key components of the Java programming language, each serving a specific role in the Java development and execution process:

                  JDK (Java Development Kit):

                  The JDK is a software development kit that includes tools and resources necessary for developing Java applications.
                  It contains the Java compiler (javac), debugger, libraries, documentation, and other utilities needed for Java development.
                  Developers use the JDK to write, compile, and debug Java code.
                  JRE (Java Runtime Environment):

                  The JRE is a part of the JDK but can also be installed separately.
                  It provides the runtime environment for Java applications to run. It includes the Java Virtual Machine (JVM), class libraries, and other files that support the execution of Java applications.
                  Users who only want to run Java applications, without the need for development, typically need the JRE.
                  JVM (Java Virtual Machine):

                  The JVM is an abstract machine that provides a runtime environment for Java bytecode to be executed.
                  When a Java program is compiled, it is translated into bytecode, which is then interpreted and executed by the JVM.
                  The JVM is platform-dependent, meaning there are different implementations for different operating systems. It abstracts the hardware and operating system details, allowing Java programs to be executed in a "write once, run anywhere" manner.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups