1.Verify that it is already installed or not
type “javac” in command prompt
If it shows a message like this
then it is not installed.
2: Download JDK
4. If the JDK file is downloaded then double click on the file and proceed to next >>>
Click next >>>
click on next>>>
Then close it.
go to properties in This PC or (MY Computer).For setting the Path
GO to Advanced setting.
Go to the environmental variable and set up the path
Click on the path and edit it by going to your local disk C and then go to Program Files then in java their is a JDK folder then copy
by following the blue line.
Then enter javac in the Command Prompt
then this following data shows it means that java has been installed
So the Path is Set.Now You Have to start writing the Program in Notepad.