I've installed Hadoop 2.8.0 in Windows 7, following the instllation instructions in [github](https://github.com/MuhammadBilalYar/Hadoop-On-Window/wiki/Step-by-step-Hadoop-2.8.0-installation-on-Window-10), I set JAVA\_HOME and HADOOP\_HOME Environment variables correctly, and configured the *core-site.xml, mapred-site.xml, hdfs-site.xml, yarn-site.xml, hadoop-env.cmd* files as required in the document, my path is 

[enter image description here](https://i.stack.imgur.com/lbHGK.png) 

But after all this is done, I am getting the following error in console fter running **hdfs namenode –format** command

The system cannot find the path specified.
Error: JAVA\_HOME is incorrectly set.
 Please update C:\Hadoop-2.8.0\hadoop-2.8.0\etc\hadoop\hadoop-env.cmd
'-Dhadoop.security.logger' is not recognized as an internal or external command,

operable program or batch file.