Installing JDK on windows and setting classpath

Download JDK 8 from from link

Screenshot 1
Screenshot 2

Install the downloaded JDK
Verify the installation by checking the below directory
C:/program files/java/jdk1.{version}/bin

Step 3:
Setting Environmental variable. There are two ways to set java path.

Way one:
Set path temporarily
Open cmd prompt and type 
set path="c:/program files/java/jdk 1.{version}/bin"
screenshot 3

verfy by typing "javac -version" in cmd
screenshot 4 

Way two:
Set path permanantly
Open Mycomputer -> right click -->properties--> Advanced system settings --> Advanced(tab) --> Environmental variable
Screenshot 5

Check for "path" variable in user section, select path and click edit, on pop up box at the end of the value field paste the jdk bin path (use ;(semiclon to seperate each value))

To verify open new cmd promt and type "javac -version"

Related Post