0% found this document useful (0 votes)
140 views

Java Environment

The document discusses the Java development environment. It defines the Java Development Kit (JDK) as the software development kit used to create Java applications, which includes the Java Virtual Machine (JVM) and Java Runtime Environment (JRE). The JRE contains the JVM and class libraries needed to run Java applications. The JVM converts Java bytecode into machine code and executes Java programs. It defines the key components of the JRE like integration libraries and the runtime architecture which includes the classloader, bytecode verifier, and interpreter.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
140 views

Java Environment

The document discusses the Java development environment. It defines the Java Development Kit (JDK) as the software development kit used to create Java applications, which includes the Java Virtual Machine (JVM) and Java Runtime Environment (JRE). The JRE contains the JVM and class libraries needed to run Java applications. The JVM converts Java bytecode into machine code and executes Java programs. It defines the key components of the JRE like integration libraries and the runtime architecture which includes the classloader, bytecode verifier, and interpreter.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Java Environment

What is Java Development Kit (JDK)?


• is one of three core technology packages used in Java programming, along with the JVM (Java
Virtual Machine) and the JRE (Java Runtime Environment)
• a software development kit required to develop applications in Java
• To differentiate the three from each other, we must understand that:
• The JVM is the Java platform component that executes programs.
• The JRE is the on-disk part of Java that creates the JVM.
• The JDK allows developers to create Java programs that can be executed and
run by the JVM and JRE.
What is Java Runtime Environment (JRE)?

• a free software package including a Java class library, tools, and a standalone JVM
• one of the Java Development Kit’s interconnected components (JDK)
• most used environment for running Java applications on mobile devices
• checks memory access and obtains system resources when it loads classes
• operates as a software layer
Components of JRE
• Integration libraries include Java Database Connectivity (JDBC)
• Java Naming, Interface Definition Language (IDL)
• Directory Interface (JNDI)
• Remote Method Invocation Over Internet Inter-Orb Protocol (RMI-IIOP)
• Remote Method Invocation (RMI)
• Scripting

What is Java Virtual Machine (JVM)?


• an abstract machine that allows you to run Java programs on your computer
• converts bytecode to native machine code (a set of instructions executed directly by a
computer’s CPU)
• executes Java bytecode, which is platform-independent
Relationship between JDK, JVM, and JRE

• JDK and JRE: The JDK enables programmers to create core Java programs that can run by the
JRE, which includes JVM and class libraries.

• Class Libraries: A group of dynamically loadable libraries that the Java program can call at run
time.

• Compilers: It is a Java program that accepts text file of developers and compiles them into Java
class file. It is the common form of output given by the compiler, which contains Java byte code.
In Java, the primary compiler is Javac.

• Debuggers: A debugger is a Java program that lets developers test and debug Java programs.
• JavaDoc: JavaDoc is documentation made by Sun Microsystems for Java. JavaDoc is used in
generating API documentation in HTML file from the source program.

JRE Runtime Architecture


• ClassLoader
• loads all of the classes required to run a Java program dynamically
• ByteCode Verifier
• checks its format and precision
• Interpreter
• create an object of the Java virtual machine after successfully loading the byte
code
• allows the Java program to run natively on the underlying machine

You might also like