What is difference between JDK, JRE ……

JDK (Java Development Kit)


Java Developer Kit contains tools needed to develop the Java programs, and JRE to run the programs. The tools include compiler (javac.exe), Java application launcher (java.exe), Appletviewer, etc…

 

Compiler converts java code into byte code. Java application launcher opens a JRE, loads the class, and invokes its main method.

You need JDK, if at all you want to write your own programs, and to compile the m. For running java programs, JRE is sufficient.

JRE is targeted for execution of Java files

i.e. JREJVM + Java Packages Classes(like util, math, lang, awt,swing etc)+runtime libraries.

JDK is mainly targeted for java development. I.e. You can create a Java file (with the help of Java packages), compile a Java file and run a java file

JRE (Java Runtime Environment)


Java Runtime Environment contains JVM, class libraries, and other supporting files. It does not contain any development tools such as compiler, debugger, etc. Actually JVM runs the program, and it uses the class libraries, and other supporting files provided in JRE. If you want to run any java program, you need to have JRE installed in the system.

 

The Java Virtual Machine provides a platform-independent way of executing code; programmers can concentrate on writing software, without having to be concerned with how or where it will run.

If u just want to run applets (ex: Online Yahoo games or puzzles), JRE needs to be installed on the machine.

SHARE THE KNOWLEDGE


 

About Dinesh

I am engineering student........ I am selected in Microsoft Student Partner as MSP............

Posted on October 31, 2010, in Java. Bookmark the permalink. 6 Comments.

  1. Howdy, just came accross this blog from the search and I must say it is very informative indeed, really deserves to ranked a lot higher lol 🙂 a lot better than the blogs I had to go through to see this post!

    Btw, I wanted to ask what blog platform are you running? I am pretty new to blogging, and I want to run my own blog soon.

    Regards,

  1. Pingback: Tweets that mention What is difference between JDK, JRE …… « Dinesh Sonkusare -- Topsy.com

  2. Pingback: Buy Facebook Fans

Leave a comment