Reputation: 4746
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 sencha app create MyApp /path/to/www/myapp
, in addition to this app, I created debug .keystore
from Android SDK. Also I created my own packager.json
that is valid JSON. I Downloaded all Android Revisions, including revision 17. I am using Window 7 Ultimate x64 as my platform and Sencha Touch 2.0.0 GPLv3 as framework. My problem is showing when trying to generate .apk with sencha command. sencha package run packager.json
.I have tried with android emulator turned on as instructed on Sencha Touch 2 Documentation.
Here is my packager.json, app frame and error image:
Packager.json
{
"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"
]
}
APP
Error
EDIT: Thanks for answer, seems i got first problem solved, now I got another:
Seems It has something to do with java PATH as seen in this question, any ideas?
EDIT 2:
C:\Program Files\Java\jdk1.7.0_03\bin
JDK,ERROR: createProcessW
4. Regarding two Java instances, i have jdk7 in Program Files, and jdk6 in Program Files(x86) --(FALSE) 4. I have only one jdk (1.7.0_03)
Upvotes: 2
Views: 5452
Reputation: 3713
You need to have JAVA_HOME point to the JDK directory, not /bin in your system variables. (windows) example:
JAVA_HOME C:\Program Files\Java\jdk1.7.0_25
Also, I made the mistake of thinking the JDK was included in Java, which it is not, it needed to be downloaded and installed separately.
Upvotes: 1
Reputation: 11
The Problem arises only if the "PATH" variable doesn't contain "C:\Windows\System32"
. Add this to the path and will solve the CreateProcessW Error on WIndows.
Upvotes: 1
Reputation: 924
Upvotes: 1