i just face same problem & take a lot of time to find the solution. i hope that " this topic help beginners like me " ;) just follow this steps to make JDK work correctly .
step no 1 :
right click on ( my computer ) — then choose properties.

step no 2 : ----------- choose advanced System settings

Step no 3 : ----------- left click on " Environment Variables..."

Step no 4 :
1- left click on Path 2- click on Edit

Step no 5:
get the dir. "see a pic."

step no 6 :
left click on " New " then paste a dir that you copy it before Note : don't change any path that maybe cause a problem in ur OS .

Step 7 : Test
open CMD then write " javadoc " without quotes

finally sorry for any mistake in Spelling or grammar .
Best wishes ;)








