Unable to locate framework.dir in sencha - extjs

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

Related

How to "watch" sencha build process?

I am working on a Ext JS project and I need to compile JSB3 file using Sencha build. I just wanted to know if there is a way to automate the build process. When I use "watch" Sencha Cmd shows it as unknown command.
I am using Sencha Cmd v6 and Ext Js 4.1.
You have to run sencha app watch in the application root folder. Now when you change anything in your project the build will be run automatically.
The other commands which can be interesting for your are sencha app build production and sencha app build testing
You can also use sencha help SomeCommand and it will print you all the options about that command.
You can learn more at http://docs.sencha.com/cmd/guides/extjs/cmd_app.html#extjs-_-cmd_app_-_development_mode
You looking for this i think
sencha app watch
sencha app refresh
sencha app build
these are cammands use to watch refresh and build a sencha application
for example::
if you are locally and using xampp
C:>cd xampp/htdocs/foldername/applicationname
and then sencha app watch

ExtJS Sencha Build getting ext SDK from remote/CDN location

I use ExtJS 5 and build my application using Sencha Cmd.
I have Sencha app generated inside my maven based webapp.
I would like to host the SDK on some CDN and still be able to use Sencha Cmd "sencha app build" etc. Is this possible? I need to trip down the size of my webapp.
Please guide.
Do not upload this folder to source control at all.
Instead, put a readme file to tell fellow developers (who will want to build the dev version of the app) how to install Sencha ExtJS and re-generate this ext folder on their side using this command:
cd <path_to_your_app_root>
sencha app upgrade <path_to_extjs_root_folder>
Other project stackholders (Testers, management, ...) should use the production version of the app.

How to migrate a non sencha cmd application to build using sencha cmd (ExtJS 4.2)

I have an extjs 4.2 application which was built by hand coding controllers, views, stores and models. I was looking for a step by step approach to migrate to sencha cmd and could not find one.
The reasons for moving to sencha cmd are packaging benefits (1 app.js to load instead of 100s of js files), obfuscating/ minimizing code for production, theming, ease of migration to newer extjs versions.
Please let me know what steps you took to migrate to sencha cmd? I am planning to do this (actually tried it and did not succeed):
Start fresh and create a new sencha app using cmd keeping the same Ext.application.name as the hand coded one
Copy all models, views, controllers, stores over to sencha cmd app
Add those models, views, controllers in app/Application.js
Run sencha app watch and it should work
A little guidance or a pointer to how you migrated a non sencha cmd app to a sencha cmd app will help.
Thanks
First of all you need to download Sencha ExtJS and Sencha CMD. After that you need to install Sencha CMD.
Generation ExtJS Build:
run terminal;
sencha -sdk /path/to/extjs-5.x.x generate workspace my-workspace
cd my-workspace
sencha -sdk ext generate app NameApp name-app
cd name-app
sencha app build
Also, if you want to migrate exists application, you can perform the steps listed above, copy your application in workspace and run sencha app build -c production for example

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.

Cannot create new app in Sencha Touch 2.1.1

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

Resources