title: build hadoop 2.2 on windows
body: <p>I am trying to install hadoop on windows, it is so troublesome so far. </p>
  
  <p>here is error i keep getting </p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (compile-ms-winutils) on project hadoop-common: Command execution failed. Cannot run program "msbuild" (in directory "C:\hdfs\hadoop-common-project\hadoop-common"): CreateProcess error=2, The system cannot find the file specified -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  [ERROR]
  [ERROR] After correcting the problems, you can resume the build with the command
  [ERROR]   mvn &lt;goals&gt; -rf :hadoop-common
  </code></pre>
  
  <p>I have msbuild.exe, windows sdk7.1, cygwin64, maven3.0.5, jdk7 all set up in environment on my windows 7 x64 box. </p>
  
  <p>This is hadoop 2.2.0 src which i downloaded from apache website.</p>
  
  <p>under system environment, i have set </p>
  
  <pre><code>C:\Windows\Microsoft.NET\Framework64\v4.0.30319
  </code></pre>
  
  <p>this is the path to msbuild, but still doesn't work, does anyone know how to fix this? </p>
  
  <p>thanks</p>
  
  <p>update: 
  I changed pom.xml at hadoop-common-project\hadoop-common a little  from </p>
  
  <pre><code>&lt;executable&gt;msbuild&lt;/executable&gt;
  </code></pre>
  
  <p>to </p>
  
  <pre><code>&lt;executable&gt;msbuild.exe&lt;/executable&gt;
  </code></pre>
  
  <p>Now, I'm getting following error</p>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (compile-ms-winutils) on project hadoop-common: Command execution failed. Process exited with an error: 1(Exit value: 1) -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  [ERROR]
  [ERROR] After correcting the problems, you can resume the build with the command
  [ERROR]   mvn &lt;goals&gt; -rf :hadoop-common
  </code></pre>