First download jdk
After downloading check for the path where jdk is downloaded
Copy it
Type in windows search bar "edit the system environment variables"
In the window opened press "Environment variables"
Under System variables there is a place where it is written "path"
Press on "path" and press "edit"
Press "new" and paste the path copied of the jdk file
This is it :)