Difference between JDK, JRE and JVM:

JVM

JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime environment in which java bytecode can be executed.
JVMs are available for many hardware and software platforms. JVM, JRE and JDK are platform dependent because configuration of each OS differs. But, Java is platform independent.
The JVM performs following main tasks:
  • Loads code
  • Verifies code
  • Executes code
  • Provides runtime environment


JRE

JRE is an acronym for Java Runtime Environment.It is used to provide runtime environment.It is the implementation of JVM. It physically exists. It contains set of libraries + other files that JVM uses at runtime.
Implementation of JVMs are also actively released by other companies besides Sun Micro Systems.



JDK

JDK is an acronym for Java Development Kit.It physically exists.It contains JRE + development tools.

 How to Downlaod JDK.

       JDK   Download   from 
           www.oracle.com/technetwork/java/javase/downloads/‎
  
1.   Install it in C drive.

2.   After Complete of Installation.

3.   Go to C: drive then Program files then java and then  jdk 1.7.0 bin and then   open        properties  of     Applet viewer.
      Like:C:\Program Files\Java\jdk1.7.0\bin\appletviewer

4. After open properties Copy location.

     like  C:\Program Files\Java\jdk1.7.0\bin

5. then open property of computer and go to Advance system settings left on window enter.

6.  Enviroment  Variables  should be displayed.  Enter

7.  New  is in front of you click new button

8.  Two value filed is in front of you

       :Variable name:

       Variable path:

9.  In Variable name write path.

     in Variable path paste C:\Program Files\Java\jdk1.7.0\bin.

10. click Ok then   Again Ok enter.

     now Path is set.


  How to check path is set or not.

Press  Winlogo+r .
Type cmd Enter.
Cmd open.
In cmd type  javac.
lots of list of file come then you understand  Javapath is set.