12 Apr 2012 2:44 PM #1
"sencha create *" don't work but no error
Untitled.jpgi download "SenchaSDKTools-2.0.0-Beta-windows.exe" today(04/12/2012) and installed successfully.
Q.1. The first time i rum "sencha" command line, show error :"Error: Can not find ..\command\sencha.js"
BUT i run it the second time, it works and show the some related information.
Q.2 i run command "sencha create jsb -a index.html -p mta.jsb3" in my project root directory.
no error and no file was created.
the pic show all the process.
when i type the wrong command, i can get the command help, so the command line partly work.
only does not work in EXT JS 4. SENCH TOUCH work fink.
The subject was already open: here
12 Apr 2012 8:48 PM #2
I also had the same problem.
I had create a "JSBGenerator" winform application to solve the problem.
And I build the "all-calsses.js" successfully with "app.jsb3" created by my "JSBGenerator".
But I found a new problem that the "all-calsses.js" did not compressed,and the command line did not show any error only some [notice]
...... [NOTICE][Parser.Statement.factory] Statement type 'locale' is currently not supported, ignored * Compress and obfuscate all-classes.js... Copy resources... Done building!
Now I find the reason is the chinese characters in the path.
16 Apr 2012 4:28 AM #3
17 Apr 2012 2:09 PM #4install to C:\Program Files and
It appears that when you install it to the above the create option doesn't exist, but you need to use generate instead. Not 100% if this is the correct option but it works. I'm presuming that generate is the new create.
18 Apr 2012 12:17 AM #5
Doesn't work for me...
I've tried both create and generate with both installation (one in ProgramFiles and one in ProgramFiles\Sencha...). It does not create any jsb3 file...
The jsb3 file should appear in the same folder than the index.html file, right ?
18 Apr 2012 1:19 AM #6
So just to make sure you're doing the same thing.
1) install SDK TOOLS to C:\Program Files
2) install SDK to your web server root such as C:\xampp\htdocs\touch (touch is the folder I put the SDK into)
3) open the cmd promt and go to your SDK folder ( C:\xampp\htdocs\touch )
4) type command\sencha
5) you should now see the available options.
If you then type something like this (without quotes) "command\sencha app create MyApp /path/to/www/myapp" you should have a newly created app, you can also do the following which as far as I can tell does exaclty the same thing. "command\sencha generate app MyApp /path/to/www/myapp". So Generate and Create appear to be the same thing.
18 Apr 2012 5:25 AM #7
I think so, when I type "command\sencha" the "create jsb" command is available, I read the help about it but I can't manage to make it work.
18 Apr 2012 9:47 AM #8
Thanks for u answer. what u said is SENCHA TOUCH, but my question is about sencha Ext JS 4. i also can do what u do SUCCESSFULLY.
The command of sencha touche is located in root directory of sencha touche SDK, but the command line of Ext JS is located in SenchaSDKTools(not in the directory of EXT JS api, we need to install SenchaSDKTools-2.0.0-Beta-windows.exe to get it )
also, when i wrote the wrong command line, i will get some help. so i think the command line partly work.
18 Apr 2012 11:35 AM #9
glad I could help, I'm still trying to figure it out as well