Sencha Touch CMD installation issues - extjs

I have a MAMP server running on the Mac.
in the directory path: /Applications/MAMP/htdocs/MyApp/sencha-touch-2.2.0-gpl/ my SDK is copied.
I downloaded the latest Sencha CMD tool from the sencha touch website: http://www.sencha.com/products/sencha-cmd/download for Mac version 3.1.1 for Mac
On installing the Sencha CMD tools: I chose Administrator/bin/ folder to install it into. It got installed successfully.
After that, I opened the Terminal window of the Mac, navigated to the SDK folder and typed the sencha command. I got the following issues:
The Sencha CMD is not reflecting the correct version.
Also, the same warning error pops up when I try to create a new Sencha App.
Could anyone please guide the correct method of installing Sencha CMD or is there any thing I have missed out?
Thanks,
Ankit Tanna.

For me it's all in ~/.bash_profile.
Open it with a text editor. Then you should remove the path to the SDK tools and add the path to the Sencha CMD if it's not there yet.
For example, in my ~/.bash_profile, I have
# export PATH=/Users/titouanvanbelle/bin/Sencha/Cmd/3.0.2.288:$PATH
export PATH=/Users/titouanvanbelle/bin/Sencha/Cmd/3.1.1.274:$PATH
I commented the path to an older version instead of removing it in case I need it again.
Hope this helps

I have the same problem with the bash
I do that you said but the only way that I can activate sencha is create an alias
sencha=/Users/AppDev/bin/Sencha/Cmd/3.1.2.342/sencha

Related

Getting the error "com.sencha.exceptions.BasicException: GC overhead limit exceeded" while building an app in sencha cmd v6.5.1.240

I am not able to build my extjs app using sencha command "sencha app build"
I have recently updated my sencha cmd version to Cmd v6.5.1.240 and extjs version to ext-6.5.0. I also tried updating the environmental variable, by updating the path variable "set _JAVA_OPTIONS="-Xms1024m -Xmx2048m"", but couldn't resolve the issue.
The screen shot is also attached. Please help me in resolving this problem.
Thank you !
You suggestion was correct, but the location was not.
You can change the vmoptions in the Sencha CMD directory:
userhome/bin/Sencha/Cmd/6.5.1.240/
There should be a file called sencha.vmoptions.
Just add your memory increase there.
Faced same issue, but updating in sencha.vmoptions did not help for me.
Version Sencha cmd (6.5.3.6) on Windows 10.
So I had to set in command line before sencha build (sencha app build):
set _JAVA_OPTIONS=-Xms1024m -Xmx2048m -Dawt.useSystemAAFontSettings=lcd
From sencha 6.6+, this command is enough:
macos : export _JAVA_OPTIONS=-Xms2048m -Xmx8192m -Dapple.awt.UIElement=true
window: set _JAVA_OPTIONS=-Xms2048m -Xmx8192m -Dapple.awt.UIElement=true

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.

Sencha Cmd ERR Invalid Path (Trial Version)

When I try to generate an ExtJS app with my trial installation it fails. It worked in the beginning. Here is what I get:
sencha generate app -ext sampleName F:\vs13\sampleName
Sencha Cmd v5.1.0.26
[INF] Loading framework from F:/../../../../../ext
[ERR] Invalid Path : F:\..\..\..\..\..\ext
Since it is a trial version it should automatically download the framework.
This will automatically download the Ext JS Commercial Trial package and use it to generate your application.
According to the documentation this is the syntax:
sencha generate app -ext MyApp /path/to/MyApp
Also I checked the path variable which includes the path to the Sencha Cmd installation:
PATH=F:\ExtJs\bin\Sencha\Cmd\5.1.0.26;
I tried to restart the development machine. It did not help.
Any suggestion to solve the error "Invalid Path"?
Did you move Sencha Cmd installation? That could be the reason because Ext library is downloaded only for the first application you create and it is cached in the Cmd installation tree. Next applications you create use this cached Ext. If you moved Cmd then it cannot find path to the cached Ext.
You can also try to uninstall Sencha Cmd and install it again.

Sencha cmd not opening

Hi I want to learn Sencha. I have basic knowledge of MVC. I have downloaded sencha Touch and Sencha cmd. I have extracted sencha Touch folder to my local. And I have installed Sencha cmd. But Sencha cmd is not working. When I click on cmd it automatically disappeared. What can I do now. I have installed Sencha SDK Tool.
Any one please help me out.
There is a series of videos on how to prepare your computer for development here: http://extjs.eu/videos
After installing Sencha cmd in windows you need to set Environment variables.
Open start menu
Click on computer > Right click Properties.
In properties > click on Advance setting.
In Advance setting click on environment variable.
Here you select path and click on edit and add the path of the sench cmd.
Go back to cmd and run sencha.
Here you will get all the sencha details. if you get means sencha is installed properly.
At first you have to download the cmd(Which you have done). Then do the followings:
It is a zip file. Extract it.
Then you will get a .run file(If using ubuntu) or .exe file(In Windows).
Double click this file and install it. (For Ubuntu, first you have to change permission of this file to 777 using chmod 777 .run/file/path and then double click).
Now you can run sencha in terminal and check whether it has successfully been installed or not.
Goto command promt and type sencha . if your sencha cmd is installed properly ,you will see data on your promt. if it says that sencha command not found,try reinstalling sencha cmd
there is no need to open sencha cmd and sdk if you have correctly installed sencha cmd then go to command promt and type sencha if it's show version and other help command then it's properly installed.
then go to your sdk path and create app by sencha generate app app_name folder_name or path where you want to create your application.
A real case: Sencha v6.5.3.6 on Windows 10 professional x64. From CMD, you run
C:\Users\computer_user_name\bin\Sencha\Cmd\sencha
I must point out full path of sencha.exe for running.

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

Resources