Installing JDK on windows and setting classpath


STEP 1:
Download JDK 8 from from link https://www.java.com/en/download/



STEP 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"


verfy by typing "javac -version" in cmd

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


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"



Comments


©candidjava.com