Install Java
Step 1 - Java SE is freely available from the link So you download a version based on your operating system.Once you installed Java on your machine, Let's set environment variables.
Step 2 - Suppose you have installed Java in c:\Program Files\java\jdk directory
              Right-click on 'My Computer' and select 'Properties'.
              Click on the 'Environment variables' button under the 'Advanced' tab.
              Change the 'Path' variable so that it also contains the path to the Java executable.
              Append this to your path - c:\Program Files\java\jdk\bin
Step 3 - In the command prompt enter command javac.
If you see a screen like below. Java is Installed.

javac
Ads by Google


Previous - History of Java                                                                               Next - Java Class