Cannot create new app in Sencha Touch 2.1.1 - extjs

So I decided to play with Sencha.
when I run app create command I have this:
D:\DevProjects\sencha-touch-2.1.1-commercial>sencha app create MyApp /my/t1
ERROR: Failed to exec (java -Xms128m -Xmx1024m -Djava.awt.headless=true -jar C:\Users\Cherven\bin\Sencha\Cmd\3.1.0.256\sencha.jar app create M
yApp /my/t1) - The system cannot find the file specified. (2)
What can I do?

Seem like you're missing something. Please follow the official guide.
So basically, you need to have other 3 things besides Sencha SDK that I'm assume you've already downloaded correctly which are: JRE, Sencha CMD and Compass.
Finally, you need to use generate instead of create to generete new app using Sencha Cmd:
sencha generate app MyApp /path/to/MyApp

Related

how to create an Extjs app using sencha cmd

I am new to sencha. I need to work on ExtJS and would like to create an app using sencha cmd. I have tried many things but not getting a clear info to create an app with sencha cmd.
Please help me by treating as a beginner to build an application.
Also after the installation of sencha cmd how can we start this to run sencha commands? When I try any command in normal terminal it shows me 'sencha is not recognized' in windows PC. Also I've given the sencha cmd path in the environment variable PATH.
After you fix the PATH problem and when sencha works, run
sencha generate app YourNameSpace /where/you/want/it
Run this command in ext directory - where you unzipped Ext.
For more details see http://extjs.eu/videos
Along with Path variable try to create another variable
SENCHA_CMD_5_0_0 and set the location of your sencha cmd
after doing this sencha cmd path will present in both path and sencha_cmd_5_0_0 variables
Sencha cmd is a Java Application, be sure you have Java SDK or JRE installed, also add the path to Sencha Cmd executable to your PATH environment variable, (My PC properties/Advanced/Environment VAriables), read the install documentation carefully.
Download Sencha SDK GPL or try the commercial version.
You could start generating a basic app or using a predefined template:
$ sencha -sd path/to/ext-6.x generate app APP_NAME path/to/project
A good starting point for more advanced applications is using the package templates, i.e the Admin Dashboard:
$ sencha -sd /path/to/ext-6x generate app -s /path/to/ext6.x/templates/admin-dashboard/ APP_NAME /path/to/project
You should run $ sencha package upgrade if required.

Unable to use sencha command to generate project ExtJs 5.1

I am using extjs 5.1. As suggested here I have downloaded and installed sencha cmd 5
After issuing following command from terminal sencha generate app -ext MyApp ./app I am getting errors as shown in below image. Please help
I installed the sencha exe #C:\Program Files\Sencha\Sencha\Cmd\5.1.2.52 on my box.
-sdk flag should point to folder of the ExtJS framework, not to Cmd folder.
You have to download framework first or use remote version of the framework sencha generate app -ext MyApp ./app

Unable to locate framework.dir in sencha

I have installed sencha cmd 4.0.4.84. But when i tried to create an App it is showing Unalble to locate framework.dir property from sencha config.Ensure the command was executed from a valid framework direcotry.Non framework directory
It is exactly what it says: you are most likely running sencha from a wrong directory.
cd /where/you/extracted/ext-4.2.1
sencha generate app MyApp /where/you/want/myapp
For more details watch: Creating Workspace and Applications video.
I made a big mistake- i was running from sencha command root. But it has to be running from
Extjs version root. we have to create a worklocation inside it. their will extjs folder and from their we need run the command to create the App. Now it is working perfectly
You'll want to take a look at the cmd tools and workspaces.
A little more specifically take a look at the framework locations section of the page.
It's better to go to the SDK folder just mention the SDK path in your command while generating the app:
sencha -sdk <YOUR SDK PATH> generate app <APP NAME> <PATH TO GENERATE APP>
Before creating any sencha app.
Understand 2 things.
1. Sencha CMD
2.Extjs framework.
Both are different.
Coming to point:.
1. Download the latest extjs framework.
2.Use the below command
sencha -sdk=path/to/ext generate app MyAPP path/to/worspace/of/MyApp
This will solve the above issue asked in question.
Danke,
Rahul

How do i setup sencha touch 2 on windows 7 properly. I am try but can't

There is on problem occur on my CMD. when i am try to setup Sencha touch 2.There is show this kind of error
You need to run the command at sencha sdk folder not sencha-touch-2 as you can see in the warning
Beside that I'd suggest you upgrading to sencha touch version 2.1 since it has a lot of enhancements. To run command in this version you need to download Sencha Cmd since Sencha SDK tools has been deprecated in this version and here is the guide on how to use this Sencha Cmd.
Hope it helps :)
Follow the following step by step -
step 1 - Download all the sencha related SDKs if you dont have from here
step 2 - extract "sencha-touch-2.3.0-gpl.zip" to your project directory. and install the SenchaCmd and sencha SDK tools on your machine.
step 3 - open you command prompt and type sencha and enter.
if you see the output like - Sencha Cmd v4.0.1.45 the everything is OK. other wise may be its a problem with your installation.
step 4 - Now you have to create a blank sencha touch app - go to the command prompt and write the following command -
C:\inetpub\wwwroot\touch-2.3.0>sencha -sdk "location path where you have extracted the SDK" gen
erate app MyApp "Location path where you want to create the app"
for example in my case this is like - "C:\inetpub\wwwroot\touch-2.3.0>sencha -sdk "C:\inetpub\wwwroot\touch-2.3.0" gen
erate app MyApp "C:\inetpub\wwwroot\ITK_2.0""
step 5 - host the app on your web server (I am using IIS 8 on my windows 8 machine) and hit the URL "localhost/MyApp/".
thats all.
Happy Coding.
It is a warning not an error. You can find more about the command line tool # here

sencha create jsb -a ./app.html -p ./app.jsb3

In the Sencha SDK 3.0, sencha create is not a correct command!
When I enter
sencha create jsb -a ./app.html -p ./app.jsb3
I get info of "No such property : 'create'".
How can I create usb file in new Sencha SDK 3.0? Thank you for your help!
sencha create jsb
is a unique command and is ommitted from the Sencha Cmd v3.0 - why - who knows!?
you still need to use the SDK Tools v2.0, and this command (becausesencha for v3.0 is in your path):
d:\_dev\ExtPackageTest>"C:\Program Files (x86)\SenchaSDKTools-2.0.0-beta3\sencha
" create jsb -a http://localhost:60139/index.html -p app.jsb3
Where ExtPackageTest is the root of your web app code
I think the best if you can move to Ext 4.1.3+ is to go straight to the new Sencha Cmd v3.0 for Ext Js follow this guide.
It's very sensitive and I'd recommend you create a new app with it and copy your app code into the template it generates. I found my code behaved differently after packaging into release mode and was told by support I'd "just got lucky" that this hadn't happened with the debug set up ^^.
http://docs.sencha.com/ext-js/4-1/#!/guide/command
I also got this error ([ERR] No such property : 'generate'), but in other case - while trying to create my first app.
Instead of:
sencha app create MyApp ../MyApp
I write:
sencha generate app MyApp ../MyApp
Hope that's help

Resources