title: Registry key Error: Java version has value '1.8', but '1.7' is required
body: <p>While running </p>
  
  <pre><code>sencha app build production
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <blockquote>
    <p>Error: Registry key 'Software\JavaSoft\Java Runtime
    Environment'\CurrentVersion'</p>
    
    <p>has value '1.8', but '1.7' is required. Error: could not find java.dll
    Error: Could not find Java SE Runtime Environment.</p>
  </blockquote>
  
  <p><code>java -version</code> , command is showing following:</p>
  
  <p>java version "1.8.0_40"
  Java(TM) SE Runtime Environment (build 1.8.0_40-b26)
  Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)</p>
  
  <p>Not able to find where path is going wrong. Any idea?</p>
  
  <p>----------------------- EDIT ------------------------------------------------</p>
  
  <p><strong>Note</strong>: I am using Windows 7 (64 bit). </p>
  
  <p>I have tried uninstalling the sencha touch cmd and reinstalling. But still same error.</p>
  
  <p>I have uninstalled all the java version instances and reinstalled the latest one, Still the problem persist.</p>