Initially, download JAVA by clicking the link -> Java Link
Click on "JDK and JRE Download buttons" as shown in the figure.
Now click on the checkbox "Accept the licence agreement" as shown below.
Download the links as per the operating system on the computer.The process of downloading for Windows OS is shown below.
Now open the downloaded link and click on Next as shown below.
If needed one can change the destination folder and click on Next.
Java is now installed and one need to set the classpath.To set the path,go to
My Computer->Advanced system settings->Environment Variables->NewFollow the below figure which shows step-by-step procedure.
Give the variable name as "PATH"
Variable value as "C:\Program Files\Java\jdk1.8.0_65\bin" (destination folder of java)
To develop any Java program, any of the text editor is needed.Any text editor like Notepad,Eclipse,NetBeans etc can be used.Eclipse IDE can be downloaded from Eclipse Link