Hadoop installation

i have installed hadoop-3.2.1 , jdk , jre in my windows 8.1 , but after all the installation part when i run the command in cmd
command : hdfs namenode -format
It is showing me an error : Could not find or load main class.
PFA the screenshot.

It is dificult to setup hadoop on a windows machine. I would suggest using CloudxLab instead.