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

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 unde...

What is Object Oriented Programming.?

Hello Friends I am Kushal Bhatt. And I am here with new topic on object oriented concepts on our blog CompuTech. So let's start our today's topic, Object oriented concepts are relates to our life Oops concept are used in real time use . It is also provide data hiding so data can not accessible by external functions. data abstraction concept that help in improve the security. In Object Oriented Programming program are divide in no.  of objects. New data and methods can easily add whenever necessary. Object oriented programming is follow bottom to up in program design. There are following concepts are providing by Object Oriented Programming. 1.class 2.Objects 3.Data Abstraction 4.Encapsulation 5.Inheritance 6.Polymorphism. 7.Message Communication 8.Data Binding . 1. Class :-          Class is a a way to enclose a methods variables in single package or unit known class. ...

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...