0% found this document useful (0 votes)
276 views2 pages

JDK, Jre, JVM

The JVM converts Java byte code into machine language that is executed by the computer. The JDK is a software development environment used for developing Java applications and includes tools like a compiler and JRE. The JRE provides services like memory management that allow Java programs to run on different operating systems without modification.

Uploaded by

Miranda Mahunze
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
276 views2 pages

JDK, Jre, JVM

The JVM converts Java byte code into machine language that is executed by the computer. The JDK is a software development environment used for developing Java applications and includes tools like a compiler and JRE. The JRE provides services like memory management that allow Java programs to run on different operating systems without modification.

Uploaded by

Miranda Mahunze
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Write brief notes about

a. JVM

JVM (Java Virtual Machine)is a Java byte code processing engine that converts Java byte
code into machine language, which is then executed by the machine (computer).
When a Java program is created, a file with .java extension is built. This file may contain
several attributes that include but not limited to Classes, methods, objects, and so on. This
.java file is then compiled using a Java Compiler, which generates a .class file (also called
Java Byte Code). JVM then reads this .class file, understands its code, interprets the code into
machine language, and executes the file.

b. JDK

The Java Development Kit (JDK) is a software development environment used for
developing Java applications and applets. It includes the Java Runtime Environment (JRE),
an interpreter/loader (java), a compiler (javac), an archiver (jar), a documentation generator
(javadoc) and other tools needed in Java development.

c. JRE

A runtime environment is a software program needs to execute, and to do that it needs an


environment to run in. The runtime environment loads class files and ensures there is access
to memory and other system resources to run them. The Java Runtime Environment is a
software layer that runs on top of a computer's operating system, providing additional
services specific to Java. The JRE smoothes over the diversity of operating systems, ensuring
that Java programs can run on virtually any OS without modification. It also provides value-
added services. Automatic memory management is one of the JRE's most important services,
ensuring that programmers don't have to manually control the allocation and reallocation of
memory.

2. Briefly explain the process of installing and configuring JDK for Windows.

i. Download the JDK. Select the appropriate JDK version. (The Java Standard Edition
JDK is more appropriate which offers all three components: Development Tools,
Source Code and Public JRE).
ii. When running the JDK installer, you may install one or all of the three components
mentioned above. Doing this means that the JDK and JRE will be installed in the
different locations in the operating system. On Windows, that’s C:\Program
Files\Java.
iii. Next is to set JAVA_HOME as environment variable. Go to settings and select the
Advanced tab.
iv. In System Properties window, click Environment Variable. Under System Variables
click the ‘New’ button and enter JAVA_HOME as Variable name and the path to the
Java JDK directory under Variable value.
v. In Environmental Variables window under System Variables, select Path. Click on
Edit then in Edit Environment Variable window click New. Type in %JAVA_HOME
%\bin or copy the directory in step 4.
vi. Move the path up and test using command prompt:
e.g. C:\users\admin>echo %JAVA_HOME%

You might also like