title: Phonegap run android error on Windows 8
body: <p>I'm trying to run phonegame on Windows 8 and I get the following error when I type <strong>phonegap run android</strong>. Any ideas how to solve it? I have everything ready, nodejs, cordova and etc.</p>
  
  <blockquote>
    <p>C:\Users\almeidamarcell\my-app>phonegap run android [phonegap]
    detecting Android SDK environment... [phonegap] using the local
    environment [phonegap] adding the Android platform...    [error] An
    error occured during creation of android sub-project.</p>
    
    <p>C:\Users\almeidamarcell.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.
    js:126
                        throw e;
                              ^ Error: Failed to run 'java -version', make sure your java environment is set up including JDK and JRE. Your
    JAVA_HOME variable is undefined Error: Command failed: 'java' is not
    recognized as an internal or external comma nd,</p>
    
    <p>operable program or batch file.</p>
  
  <pre><code>at C:\Users\almeidamarcell\.cordova\lib\android\cordova\3.3.0\bin\lib\check_
  </code></pre>
    
    <p>reqs.js:62:22
        at ChildProcess.exithandler (child_process.js:641:7)
        at ChildProcess.EventEmitter.emit (events.js:98:17)
        at maybeClose (child_process.js:743:16)
        at Socket. (child_process.js:956:11)
        at Socket.EventEmitter.emit (events.js:95:17)
        at Pipe.close (net.js:465:12)</p>
    
    <p>C:\Users\almeidamarcell\my-app>phonegap run android</p>
  </blockquote>