Java1
Java1
By : Kapil Kumar
Table of Content
• What is Java ?
• What is JDK , JRE , JVM ?
• How to Install JDK?
• What is Eclipse?
• How to Install Eclipse?
What is Java ?
• Java is an object-oriented programming language that
produces software for multiple platforms. When a
programmer writes a Java application, the compiled code
(known as byte code) runs on most operating systems (OS),
including Windows, Linux and Mac OS.
• Java was developed by Sun Microsystems (which is now the
subsidiary of Oracle) in the year 1995. James Gosling is known
as the father of Java. Before Java, its name was Oak. Since Oak
was already a registered company, so James Gosling and his
team changed the name from Oak to Java.
Basic Software Requirement
• RAM : At least 128 MB. Disk Space : 124 MB for JRE, 2 MB
for Java Update. Processor : Minimum Pentium 2 266 MHz
processor.
How to Install JDK
• DK (Java SE Development Kit) Includes a complete
JRE (Java Runtime Environment) plus tools for developing,
debugging, and monitoring Java applications. JDK is required
to build and run Java applications.
• Download Links :
• JDK for 64 Bit OS : https://filehippo.com/download_java-
development-kit-64/
• https://filehippo.com/download_java-development-kit-64/
history/
How to Install Eclipse
• The Eclipse Installer 2022‑06 R now includes a JRE for
mac OS, Windows and Linux.
• Eclipse is a free, Java-based development platform known
for its plug-in that allow developers to develop and test
code written in other programming languages. Eclipse
is released under the terms of the Eclipse Public License.
• Download Links :
• URL :The essential tools for any Java developer,
including a Java IDE, a Git client, XML Editor, Maven
and Gradle integration
• Official Site : https://www.eclipse.org/
• https://www.eclipse.org/downloads/packages/
What is JDK , JRE , JVM
• Java Development Kit (JDK):
• Java Development Kit contains two parts. One part contains
the utilities like javac, debugger, jar which helps in compiling
the source code (.java files) into byte code (.class files) and
debug the programs. The other part is the JRE, which contains
the utilities like java which help in running/executing the byte
code. If we want to write programs and run them, then we
need the JDK installed.
• Java Compiler (javac):
• javac is the executable/application which compiles the .java
source files into the byte code (.class files). javac is included
in JDK.
• Java Run-time Environment (JRE):
• Java Run-time Environment helps in running the
programs. JRE contains the JVM, the java classes/packages and
the run-time libraries. If we do not want to write programs, but
only execute the programs written by others, then JRE alone will
be sufficient.
• Java Virtual Machine (JVM):
• Java Virtual Machine is important part of the JRE, which actually
runs the programs (.class files), it uses the java class libraries and
the run-time libraries to execute those programs. Every operating
system(OS) or platform will have a different JVM.
• Just In Time Compiler (JIT):
• JIT is a module inside the JVM which helps
in compiling certain parts of byte code into the machine
code for higher performance. Note that only certain parts of
byte code will be compiled to the machine code, the other
parts are usually interpreted and executed.
• Java is distributed in two packages - JDK and JRE.
When JDK is installed it also contains
the JRE, JVM and JIT apart from the compiler, debugging
tools. When JRE is installed it contains the JVM and JIT and
the class libraries.
THANK YOU.