View Full Version : sencha create jsb

28 Feb 2014, 12:52 PM
Hi i am trying to build a production code for my project.
I've followed a few links on the web but i ended up with this error;

ReferenceError: Can't find variable: Ext

The closest answer i've found says;

"The proper path to the ext-debug, ext-all.css fixed the issue. If you have specified a relative path in your index.html, make sure the path is pointing to the library files correctly."

Well if the path doesnot point to the library files correctly it wouldn't run in the development mode either, so i could't understand this answer.

My files are like this;

In index.html

<link rel="stylesheet" type="text/css" href="/assets/lib/ext/ext-">
<script type="text/javascript" src="/assets/lib/ext/ext-"></script>
<script type="text/javascript" src="/assets/lib/ext/ext-"></script>
<script type="text/javascript" src="/assets/app.js"></script>

index.html file located as ../webapp/WEB-INF/views which is relative to app.js file

and i run the command under the same directory as app.js which is lets say /myProject/src/main/webapp/assets

and the command is;

sencha create jsb -a ../WEB-INF/views/index.html -p sch.jsb3

i've also tried

sencha create jsb -a http://localhost:8080/home -p sch.jsb3
but it just hangs
Thanks in advance

28 Feb 2014, 2:31 PM
Please note the SDKTools is no longer supported and was abandoned some time ago in a state of BETA.

Please have a look at Sencha Cmd: