Hello Friends
I am Kushal Bhatt
And here I am with new topic on our blog CompuTech.
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.
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.
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.
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.
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 .
Thank you please Share Comment .
Comments
Post a Comment