title: getting JAVA_HOME is incorrectly set with hadoop
body: <p>I  just downloaded hadoop and unzipped the file. but when I run hadoop version command from command prompt , I'm getting below error . I double check and JAVA_HOME is set to  &quot;C:\Program Files\Java\jdk1.8.0_45\bin&quot; which looks ok to me .</p>
  <pre><code>C:\Users\shri-pc&gt;hadoop version
  The system cannot find the path specified.
  Error: JAVA_HOME is incorrectly set.
         Please update C:\JAVA\hadoop-2.6.0\conf\hadoop-env.cmd
  '-Xmx512m' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  <p>Output of java -version command is coming properly . Please advice .</p>
  <pre><code>C:\Users\shri-pc&gt;java -version
  java version &quot;1.8.0_51&quot;
  Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
  Java HotSpot(TM) Client VM (build 25.51-b03, mixed mode)
  </code></pre>