Install JDK and JRE
Step 1: Open a browser of your choice and type Java JDK in the search bar. Some links appear. Make sure you click on the link which belongs to the website Oracle. (Avoid downloading Java from any other website)
Step 2: Click on DOWNLOAD under JDK.
Step 3: Click on radio button which reads Accept License Agreement.
Step 4: Now,go to My Computer (an icon on your desktop where on double click you can access all your drives) and Right Click on it. A dropdown appears, Click Properties.
Step 5: Check your Operating System and System Type.(For me its Windows 64 bit)
Step 6: Click on the appropriate version to download it.
Step 7: Now, go to the destination of your download and double click on the file. Click on Yes on the pop up that appears. It may take some time to install.
Step 8: Go to C: -> Program Files -> Java -> jdk -> bin. Copy this path.
Step 9: Right Click on My Computer(an icon on your desktop where on double click you can access all your drives). Click on Properties. After the window opens, Click on Advanced system settings.
Step 10: A PopUp will open. Click on Environment Variables.
Step 11: A PopUp will open. Double Click on Path.
Step 12: A PopUp will open. In the text box beside Variable Value , some paths will already be written. Go at the end and press Semicolon (;). Paste the path which you copied in Step 8. Press OK for all the Pop Ups.
Step 13: In a few moments the pop Up for JRE will come up. Just hit Next everytime. The installation will be done.
Step 14: The jre will be installed just below the jdk folder. Follow Step 8 to Step 12 for the jre.