Skip to main content

What is JRE and JDK.?What is use in Java.?

Hello Friends
I am Kushal Bhatt
And here I am with new topic on our blog CompuTech.
Today's topic is on JRE and JDK.
So lets start our topic,



What is JRE.?
JRE stands for Java Runtime Environment.
JRE is used to provide an runtime environment for java application.
JRE is also consist a JVM and also implementing JVM whenever it requiring.
JRE is provide all java classes and methods and other libraries ,Development tools to java applications.
Without JRE you java application can not be run.
It provide only runtime environment to java application not development application .
Example if you want to make client only use java application not modification then you need to only install JRE to client machine .
Which make enable only run java application.
If you want to develop a java application then you need to install JDK on machine.
JRE consist only JVM and Java Standard Libraries(JSL).

for Development JDK is used,
JDK stands for Java Development Kit.
JDK is provide a development tools and runtime environment to java programs.
JDK have following Development tools,
1.javac.
2.java.
3.javadoc.
4.javah.
5.javap.
6.jdb.
7.appletviewer.

Tools and Use
1.javac:- java compiler is used to convert java source code to byte code.

2.java:-java interpreter is used to convert byte code to machine code.

3. javadoc:- it used to create HTML format documentation of your java source code.

4.javah:-it is used to produce header file for native methods.

5.javap:-it is used to disassemble you byte code into program description for understand.

6.jdb:-java debugger is used to find error in program.

7.appletviewer:-it is used to enable to run applets program.

This tools are used to build a java programs.

Let we understand process of building and running of java program with use of JSL or Java API.


First we need to create a source code of java program in text editor save as <file_name>.java
Then we need to compile a java file by using JDK tool javac
Like javac file_name>.java
After successfully compilation it generate a class file <file_name>.class
It contain byte code which we need to make it understandable by machine with the use of java interpreter by use java tool by help of JVM implementation ,
java <file_class_name>
Here <file_class_name> is class name which contain main method in java program.
Now output can generated if program not contain error you can find error by debug it using jdb tool.
If you use native methods and you can use javah to generate header files.

JSL or API(Application Programming Interface)
API consist thousand of classes and methods in the set of several packages like,
java.lang
java.util
java.io
java.net
java.applet
This several packages are used to implement basic features,date,time,input output functions,networking,applet and other functionalities.

So we can say that JDK is superset of JRE .and JRE is superset of JVM.


So this is all about JRE,JDK from this blog .in next blog we are understand the installation of java .
Thank you please Share Comment .

Comments

Popular posts from this blog

Difference between C and Java ,C++ and Java

Hello Friends I am Kushal Bhatt. And I am welcome you on our blog CompuTech with another topic. Today's topic is Differ ence between C and Java ,C++ and Java. First we discuss Difference bet ween C and Java. 1 . C was develop by Dennie Ritchie at AT&T Bell Labs between 1969 to 1973, On other hand Java was develop by James Gosling at sun Microsystems which first appear in 1995. 2. C is Procedural Ori ented Programming langu age On other hand Java is Object Oriented Programming language . 3. C is Low level langu age On other hand Java is High level lang uage. 4. C is Compi le lang uage On other hand Java is Interpreter Langua ge. 5. C follow Top Bottom approach. on other hand Java follow Bottom Top approach. 6. C contains the Preprocessor Directives header file like #include,#define. On other hand Java not contains any header file. 7 . C support Goto statement, Structure,union but Java not support Goto statement, Stru

Basic Introduction of Java for beginners

Hello Friends I am kushal bhatt and I am welcome you on our very first  blog CompuTech . Friends, you all are already aware about a Java Programming Language like how to write a code how to compile and run it but i am here to discus about . Why Java was invented. Which requirement fulfilled by Java and Nowadays Where actually java is used in a real time . So it is very required for your career to clear basic fundamental of java . So lets start our todays topics☕ First of all we need to clear what is actual java is? Java is a System friendly High level programming language that means java can easily interact with system. Java is a pure Object Oriented Programming language because everything in java must be object or class . History :- Java was Developed by James Gosling at sun microsystems in 1990  and after couple of years it acquire by Oracle corporation till now. Sun microsystem actually want to develop a language that can easily work with electronic

Features of java for beginners

Hello friends I am kushal bhatt And I am welcome you on my another post on java subject in our blog CompuTech. Today We need to discuss the key features provided by java . So lets start our todays topic Java is very high level programming language and its also support oops concepts that make it more better. There are list of features provide by java 1.Simple and Familier 2.Object Oriented. 3.Robust and Secure. 4.Plateform Independent and portable. 5.Compiled and Interpreter. 6.Distributed. 7.Multithreading and Interactive 8.High Perfomance. 9.Dynamic and Extensive. 1. Simple and Familier: -             Java are not use some of features such as Operator overloading,Multiple Inheritence,Goto statement , pointer, Preprocessor Directive and many more features which is helpful to reduce complexity of program. Java is quite similar to C and C++ even though Java syntax similar to C and C++. So it is easy to understand to existing programmer.and