title: Android packaging with sencha touch 2 sdk tools?
body: <p>I am trying to make a .apk from my Sencha Touch 2 app. I am using default mvc app that i got from running sencha command <code>sencha app create MyApp /path/to/www/myapp</code> , in addition to this app, I created  debug <code>.keystore</code> from Android SDK. Also I created my own <code>packager.json</code> that is <em>valid JSON</em>. I Downloaded all Android Revisions, including <em>revision 17</em>. I am using Window 7 Ultimate x64 as my platform and Sencha Touch 2.0.0 GPLv3 as framework. <strong>My problem is showing when trying to generate .apk with sencha command.</strong> <code>sencha package run packager.json</code>.I have tried with android emulator turned on as instructed on Sencha Touch 2 Documentation.</p>
  
  <p>Here is my packager.json, app frame and error image:</p>
  
  <p><strong>Packager.json</strong></p>
  
  <pre><code>{
      "applicationName":"HelenaApp",
      "applicationId":"com.helena",
      "iconName":"icon.png",
      "versionString":"1.0",
      "outputPath":"C:/wamp/www/Helena/HelenaAndroid",
      "inputPath":"C:/wamp/www/Helena",
      "webAppPath":"C:/wamp/www/Helena",
      "androidAPILevel":"13",
      "configuration":"Debug",
      "platform":"AndroidEmulator",
      "deviceType":"Universal",
      "certificatePath":"moj-key.keystore",
      "certificateAlias":"helena",
      "sdkPath":"C:/Android/android-sdk",
      "orientations": [
          "portrait",
          "landscapeLeft",
          "landscapeRight",
          "portraitUpsideDown"
      ]
  }
  </code></pre>
  
  <p><strong>APP</strong></p>
  
  <p><img src="https://i.stack.imgur.com/mQghz.png" alt="Helena app frame"></p>
  
  <p><strong>Error</strong></p>
  
  <p><img src="https://i.stack.imgur.com/TnUhV.png" alt="enter image description here"></p>
  
  <p><strong>EDIT:</strong>
  Thanks for answer, seems i got first problem solved, now I got another:</p>
  
  <p><img src="https://i.stack.imgur.com/zwJMp.png" alt="enter image description here"></p>
  
  <p>Seems It has something to do with java PATH as seen in this <a href="https://stackoverflow.com/q/3394369/765628">question</a>, any ideas?</p>
  
  <p><strong>EDIT 2:</strong></p>
  
  <ol>
  <li>I edited path to my <code>C:\Program Files\Java\jdk1.7.0_03\bin</code> JDK,</li>
  <li>Previous path was path to Sencha SDK</li>
  <li>Then I changed it back to Sencha, and i got error in console <code>ERROR: createProcessW</code></li>
  </ol>
  
  <p><em>4. Regarding two Java instances, i have jdk7 in Program Files, and jdk6 in Program Files(x86) --<strong>(FALSE)</em></strong> 
  4. I have only one jdk (1.7.0_03)</p>
  
  <p><img src="https://i.stack.imgur.com/N8e8g.png" alt="enter image description here"></p>