Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Sencha app build native android in Linux

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    2

    Default Sencha app build native android in Linux

    Hello.

    I'm trying to build a sencha touch app for android platform, using Linux.
    The application has been created with the command:
    Code:
    sencha -sdk /path/to/sencha-sdk/ generate app nameApp /path/to/app
    After, build the native app without chande the code:
    Code:
    sencha --debug app build native
    The packager.json is:
    Code:
    {
        "applicationName": "mallTouch",
        "applicationId": "es.novis.malltouch",
        "outputPath": "/home/edu/Escritorio/build",
        "versionString": "1.0",
        "versionCode": "1",
        "inputPath": "/var/www/mallprueba",
        "icon": {
            "57": "resources/icons/Icon.png",
            "72": "resources/icons/Icon~ipad.png",
            "114": "resources/icons/[email protected]",
            "144": "resources/icons/[email protected]"
        },
        "configuration": "debug",
        "platform": "Android",
        "certificatePath": "/home/edu/Novis/Movil/certificado/novis.keystore",
        "certificateAlias": "novis",
        "certificatePassword": "soluciones",
        "permissions": [
            "INTERNET",
            "ACCESS_NETWORK_STATE",
            "CAMERA",
            "VIBRATE",
            "ACCESS_FINE_LOCATION",
            "ACCESS_COARSE_LOCATION",
            "CALL_PHONE"
        ],
        "sdkPath": "/home/edu/android-sdk",
        "androidAPILevel": "8",
        "orientations": [
            "portrait",
            "landscapeLeft",
            "landscapeRight",
            "portraitUpsideDown"
        ]
    }
    The versions used are:
    Sencha Cmd v3.1.1.270
    Sencha Touch 2.2.0

    Android API 8 is installed.

    The stack trace is as follows:
    Code:
    [DBG] using working directory .
    Created directory /var/www/mallprueba/build/MallTouch/native/src/es/novis/malltouch
    Added file /var/www/mallprueba/build/MallTouch/native/src/es/novis/malltouch/STActivity.java
    Created directory /var/www/mallprueba/build/MallTouch/native/res
    Created directory /var/www/mallprueba/build/MallTouch/native/bin
    Created directory /var/www/mallprueba/build/MallTouch/native/libs
    Created directory /var/www/mallprueba/build/MallTouch/native/res/values
    Added file /var/www/mallprueba/build/MallTouch/native/res/values/strings.xml
    Created directory /var/www/mallprueba/build/MallTouch/native/res/layout
    Added file /var/www/mallprueba/build/MallTouch/native/res/layout/main.xml
    Added file /var/www/mallprueba/build/MallTouch/native/AndroidManifest.xml
    Added file /var/www/mallprueba/build/MallTouch/native/build.xml
    Added file /var/www/mallprueba/build/MallTouch/native/proguard-project.txt
    Copy operation failed src=st-res/android//nimblekit.jar dst=/var/www/mallprueba/build/MallTouch/native//libs/nimblekit.jar
    "/home/edu/android-sdk/tools/android" create project --target android-8 --name mallTouch --activity STActivity --path "/var/www/mallprueba/build/MallTouch/native/" --package es.novis.malltouch
    Can not open source file
    Failed to copy packager library
    Failed to package application
    [DBG] exit code was : 3
    [DBG] exit code was : 3
    [ERR] failed running native packager
    [ERR] Created directory /var/www/mallprueba/build/MallTouch/native/src/es/novis/malltouch
    Added file /var/www/mallprueba/build/MallTouch/native/src/es/novis/malltouch/STActivity.java
    Created directory /var/www/mallprueba/build/MallTouch/native/res
    Created directory /var/www/mallprueba/build/MallTouch/native/bin
    Created directory /var/www/mallprueba/build/MallTouch/native/libs
    Created directory /var/www/mallprueba/build/MallTouch/native/res/values
    Added file /var/www/mallprueba/build/MallTouch/native/res/values/strings.xml
    Created directory /var/www/mallprueba/build/MallTouch/native/res/layout
    Added file /var/www/mallprueba/build/MallTouch/native/res/layout/main.xml
    Added file /var/www/mallprueba/build/MallTouch/native/AndroidManifest.xml
    Added file /var/www/mallprueba/build/MallTouch/native/build.xml
    Added file /var/www/mallprueba/build/MallTouch/native/proguard-project.txt
    Copy operation failed src=st-res/android//nimblekit.jar dst=/var/www/mallprueba/build/MallTouch/native//libs/nimblekit.jar
    "/home/edu/android-sdk/tools/android" create project --target android-8 --name mallTouch --activity STActivity --path "/var/www/mallprueba/build/MallTouch/native/" --package es.novis.malltouch
    Can not open source file
    Failed to copy packager library
    Failed to package application
    
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    [ERR] /var/www/mallprueba/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
    [ERR]    [anonymous] (x-app-build:510)
    [ERR]    each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
    [ERR]    runAppBuild (x-app-build:303)
    [ERR]    [anonymous] (x-app-build:566)
    [ERR]    x_app_build (x-app-build:564)
    [ERR]    <script> (anonymous:1)
    [ERR] 	at com.sencha.exceptions.BasicException.wrap(BasicException.java:44)
    [ERR] 	at com.sencha.cli.Command.dispatch(Command.java:64)
    [ERR] 	at com.sencha.cli.Commands.dispatch(Commands.java:62)
    [ERR] 	at com.sencha.command.Sencha.dispatch(Sencha.java:75)
    [ERR] 	at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:135)
    [ERR] 	at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:97)
    [ERR] 	at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
    [ERR] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR] 	at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR] 	at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR] 	at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR] 	at com.sencha.ant.AntScript.execute(AntScript.java:124)
    [ERR] 	at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
    [ERR] 	at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
    [ERR] 	at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
    [ERR] 	at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
    [ERR] 	at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:118)
    [ERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR] 	at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
    [ERR] 	at com.sencha.cli.Command.dispatch(Command.java:42)
    [ERR] 	at com.sencha.cli.Commands.dispatch(Commands.java:62)
    [ERR] 	at com.sencha.cli.Commands.dispatch(Commands.java:62)
    [ERR] 	at com.sencha.command.Sencha.dispatch(Sencha.java:75)
    [ERR] 	at com.sencha.command.Sencha.main(Sencha.java:126)
    [ERR] Caused by: /var/www/mallprueba/.sencha/app/build-impl.xml:256: The following error occurred while executing this line:
    [ERR] /var/www/mallprueba/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
    [ERR]    [anonymous] (x-app-build:510)
    [ERR]    each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
    [ERR]    runAppBuild (x-app-build:303)
    [ERR]    [anonymous] (x-app-build:566)
    [ERR]    x_app_build (x-app-build:564)
    [ERR]    <script> (anonymous:1)
    [ERR] 	at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
    [ERR] 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
    [ERR] 	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
    [ERR] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] 	at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    [ERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR] 	at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR] 	at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR] 	at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
    [ERR] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [ERR] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR] 	at com.sencha.ant.AntScript.execute(AntScript.java:124)
    [ERR] 	at com.sencha.ant.AntScript.execute(AntScript.java:131)
    [ERR] 	at com.sencha.command.ant.AntCommand.execute(AntCommand.java:106)
    [ERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [ERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [ERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR] 	at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
    [ERR] 	at com.sencha.cli.Command.dispatch(Command.java:42)
    [ERR] 	... 34 more
    [ERR] Caused by: /var/www/mallprueba/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
    [ERR]    [anonymous] (x-app-build:510)
    [ERR]    each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
    [ERR]    runAppBuild (x-app-build:303)
    [ERR]    [anonymous] (x-app-build:566)
    [ERR]    x_app_build (x-app-build:564)
    [ERR]    <script> (anonymous:1)
    [ERR] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
    [ERR] 	at org.apache.tools.ant.Task.perform(Task.java:348)
    [ERR] 	at org.apache.tools.ant.Target.execute(Target.java:392)
    [ERR] 	at org.apache.tools.ant.Target.performTasks(Target.java:413)
    [ERR] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
    [ERR] 	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
    [ERR] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
    [ERR] 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
    [ERR] 	... 56 more
    [ERR] Caused by: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
    [ERR]    [anonymous] (x-app-build:510)
    [ERR]    each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
    [ERR]    runAppBuild (x-app-build:303)
    [ERR]    [anonymous] (x-app-build:566)
    [ERR]    x_app_build (x-app-build:564)
    [ERR]    <script> (anonymous:1)
    [ERR] 	at com.sencha.util.JavaScriptHost.eval(JavaScriptHost.java:74)
    [ERR] 	at com.sencha.ant.ScriptTask.executeScript(ScriptTask.java:84)
    [ERR] 	at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
    [ERR] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] 	at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
    [ERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [ERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
    [ERR] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [ERR] 	... 63 more
    [ERR] Caused by: org.mozilla.javascript.WrappedException: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
    [ERR] 	at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
    [ERR] 	at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
    [ERR] 	at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
    [ERR] 	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
    [ERR] 	at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
    [ERR] 	at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
    [ERR] 	at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
    [ERR] 	at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
    [ERR] 	at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
    [ERR] 	at org.mozilla.javascript.Context.evaluateString(Context.java:1079)
    [ERR] 	at com.sencha.util.JavaScriptHost.eval(JavaScriptHost.java:67)
    [ERR] 	... 70 more
    [ERR] Caused by: com.sencha.exceptions.ExBuild: failed running native packager
    [ERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [ERR] 	at sun.reflect
    [ERR] .NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    [ERR] 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    [ERR] 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    [ERR] 	at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:159)
    [ERR] 	at org.mozilla.javascript.NativeJavaClass.constructInternal(NativeJavaClass.java:266)
    [ERR] 	at org.mozilla.javascript.NativeJavaClass.constructSpecific(NativeJavaClass.java:205)
    [ERR] 	at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaClass.java:166)
    [ERR] 	at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1519)
    [ERR] 	... 77 more
    [ERR] 
    [ERR] Total time: 17 seconds
    [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    /var/www/mallprueba/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
       [anonymous] (x-app-build:510)
       each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
       runAppBuild (x-app-build:303)
       [anonymous] (x-app-build:566)
       x_app_build (x-app-build:564)
       <script> (anonymous:1)
         at com.sencha.exceptions.BasicException.wrap(BasicException.java:44)
         at com.sencha.cli.Command.dispatch(Command.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.command.Sencha.main(Sencha.java:126)
       Caused by: com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    /var/www/mallprueba/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
       [anonymous] (x-app-build:510)
       each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
       runAppBuild (x-app-build:303)
       [anonymous] (x-app-build:566)
       x_app_build (x-app-build:564)
       <script> (anonymous:1)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
         at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:118)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.command.Sencha.main(Sencha.java:126)
       Caused by: The following error occurred while executing this line:
    /var/www/mallprueba/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
       [anonymous] (x-app-build:510)
       each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
       runAppBuild (x-app-build:303)
       [anonymous] (x-app-build:566)
       x_app_build (x-app-build:564)
       <script> (anonymous:1)
         at com.sencha.exceptions.BasicException.wrap(BasicException.java:44)
         at com.sencha.cli.Command.dispatch(Command.java:64)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:135)
         at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:97)
         at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
         at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:118)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.command.Sencha.main(Sencha.java:126)
       Caused by: The following error occurred while executing this line:
    /var/www/mallprueba/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
       [anonymous] (x-app-build:510)
       each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
       runAppBuild (x-app-build:303)
       [anonymous] (x-app-build:566)
       x_app_build (x-app-build:564)
       <script> (anonymous:1)
         at org.apache.tools.ant.ProjectHelper.addLocationToBuildException(ProjectHelper.java:551)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:444)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.ant.AntScript.execute(AntScript.java:131)
         at com.sencha.command.ant.AntCommand.execute(AntCommand.java:106)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:135)
         at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:97)
         at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
         at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:118)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.command.Sencha.main(Sencha.java:126)
       Caused by: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
       [anonymous] (x-app-build:510)
       each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
       runAppBuild (x-app-build:303)
       [anonymous] (x-app-build:566)
       x_app_build (x-app-build:564)
       <script> (anonymous:1)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.ant.AntScript.execute(AntScript.java:131)
         at com.sencha.command.ant.AntCommand.execute(AntCommand.java:106)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:135)
         at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:97)
         at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
         at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:118)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.command.Sencha.main(Sencha.java:126)
       Caused by: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
       [anonymous] (x-app-build:510)
       each (/home/edu/bin/Sencha/Cmd/3.1.1.270/ant/ant-util.js:695)
       runAppBuild (x-app-build:303)
       [anonymous] (x-app-build:566)
       x_app_build (x-app-build:564)
       <script> (anonymous:1)
         at com.sencha.util.JavaScriptHost.eval(JavaScriptHost.java:74)
         at com.sencha.ant.ScriptTask.executeScript(ScriptTask.java:84)
         at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.ant.AntScript.execute(AntScript.java:131)
         at com.sencha.command.ant.AntCommand.execute(AntCommand.java:106)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:135)
         at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:97)
         at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
         at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:118)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.command.Sencha.main(Sencha.java:126)
       Caused by: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#510)
         at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754)
         at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148)
         at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
         at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1473)
         at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
         at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
         at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
         at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
         at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
         at org.mozilla.javascript.Context.evaluateString(Context.java:1079)
         at com.sencha.util.JavaScriptHost.eval(JavaScriptHost.java:67)
         at com.sencha.ant.ScriptTask.executeScript(ScriptTask.java:84)
         at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.ant.AntScript.execute(AntScript.java:131)
         at com.sencha.command.ant.AntCommand.execute(AntCommand.java:106)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:135)
         at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:97)
         at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
         at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:118)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.command.Sencha.main(Sencha.java:126)
       Caused by: failed running native packager
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at org.mozilla.javascript.MemberBox.newInstance(MemberBox.java:159)
         at org.mozilla.javascript.NativeJavaClass.constructInternal(NativeJavaClass.java:266)
         at org.mozilla.javascript.NativeJavaClass.constructSpecific(NativeJavaClass.java:205)
         at org.mozilla.javascript.NativeJavaClass.construct(NativeJavaClass.java:166)
         at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1519)
         at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
         at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
         at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
         at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
         at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120)
         at org.mozilla.javascript.Context.evaluateString(Context.java:1079)
         at com.sencha.util.JavaScriptHost.eval(JavaScriptHost.java:67)
         at com.sencha.ant.ScriptTask.executeScript(ScriptTask.java:84)
         at org.apache.tools.ant.taskdefs.optional.script.ScriptDefBase.execute(ScriptDefBase.java:50)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
         at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.GeneratedMethodAccessor22.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.ant.AntScript.execute(AntScript.java:131)
         at com.sencha.command.ant.AntCommand.execute(AntCommand.java:106)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.cli.AbstractCommand.dispatch(AbstractCommand.java:135)
         at com.sencha.ant.SenchaCommandTask.doExecute(SenchaCommandTask.java:97)
         at com.sencha.ant.BaseAntTask.execute(BaseAntTask.java:22)
         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
         at org.apache.tools.ant.Task.perform(Task.java:348)
         at org.apache.tools.ant.Target.execute(Target.java:392)
         at org.apache.tools.ant.Target.performTasks(Target.java:413)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
         at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
         at com.sencha.ant.AntScript.execute(AntScript.java:124)
         at com.sencha.command.plugin.PluginManager.execute(PluginManager.java:93)
         at com.sencha.command.plugin.PluginManager.executeReverseFirst(PluginManager.java:134)
         at com.sencha.command.environment.BuildEnvironment.execute(BuildEnvironment.java:56)
         at com.sencha.command.BasePluginCommands$BasePluginCommand.doExecute(BasePluginCommands.java:23)
         at com.sencha.command.app.AppCommands$BuildCommand.execute(AppCommands.java:118)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sencha.util.MethodInvoker$Arguments.invoke(MethodInvoker.java:174)
         at com.sencha.cli.Command.dispatch(Command.java:42)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.cli.Commands.dispatch(Commands.java:62)
         at com.sencha.command.Sencha.dispatch(Sencha.java:75)
         at com.sencha.command.Sencha.main(Sencha.java:126)
    It seems that the error occurs in the build-impl.xml file in this piece of code (BUILD-PAGE):
    Code:
    <!--
        Build Page
        -->
        <target name="-before-page"/>
        <target name="-page">
            <property name="v2deps" value="false"/>
            <property name="args.path" location="."/>
            <property name="args.destination" location="${app.build.dir}"/>
            <property name="args.environment" value="production"/>
            
            <x-script-def name="x-app-build" 
                          src="${framework.config.dir}/app-build.js">
                <script src="${cmd.config.dir}/ant/JSON.js"/>
                <script src="${cmd.config.dir}/ant/ant-util.js"/>
            </x-script-def>
            
            <x-app-build/>
            
        </target>
        <target name="-after-page"/>
        <target name="page" depends="init" unless="skip.page"
                description="Builds only the application's HTML page">
            <antcall target="-before-page"/>
            <antcall target="-page"/>
            <antcall target="-after-page"/>
        </target>
    More specifically in line 249:
    Code:
    <x-app-build/>
    Does anyone know what could it be? I would be helpful.

    Thanks.

  2. #2
    Sencha User
    Join Date
    Apr 2013
    Posts
    2

    Default

    I don't understand why nimblekit.jar can't be copied, if it exists and is in that location.

  3. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    3

    Default

    have the same problem.

    Can not copy, because wrong path here :

    Code:
    Copy operation failed src=st-res/android//nimblekit.jar
    as I right understand shoud full path like /opt/sencha-cmd/st-res/android//nimblekit.jar

    And if I run
    Code:
     .stbuild.sh package ~/MyApp/packager.json
    from sencha-cmd - apk has been created. But this apk is not working!

    ----------------

    Any suggestion how to fix this?

  4. #4
    Sencha User
    Join Date
    Apr 2008
    Posts
    2

    Default

    Same problem for me.

  5. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    3

    Default

    Repeat all steps in Windows 7. All is fine Apk generated and work.

  6. #6
    Sencha User janmejay.mohapatra's Avatar
    Join Date
    Jul 2012
    Location
    Bhubaneswar
    Posts
    11

    Default on Sencha Cmd v3.1.1.274 for linux(ubuntu)

    I don't want to go to windows. why is the copy operation of nimblekit failing? I tried with all sort of API levels.

    Code:
    sencha app build nativeSencha Cmd v3.1.1.274
    [INF] 
    [INF] init-plugin:
    [INF] 
    [INF] init-plugin:
    [INF] 
    [INF] -before-app-build:
    [INF] 
    [INF] cmd-root-plugin.init-properties:
    [INF] 
    [INF] init-properties:
    [INF] 
    [INF] init-sencha-command:
    [INF] 
    [INF] init:
    [INF] 
    [INF] -before-app-build:
    [INF] 
    [INF] app-build-impl:
    [INF] 
    [INF] native:
    [INF] 
    [INF] -before-init-local:
    [INF] 
    [INF] -init-local:
    [INF] 
    [INF] -after-init-local:
    [INF] 
    [INF] init-local:
    [INF] 
    [INF] find-cmd:
    [INF] 
    [INF] -before-init:
    [INF] 
    [INF] -init:
    [INF] Initializing Sencha Cmd ant environment
    [INF] Adding antlib taskdef for com/sencha/command/compass/ant/antlib.xml
    [INF] 
    [INF] -after-init:
    [INF] 
    [INF] init:
    [INF] 
    [INF] -before-build:
    [INF] 
    [INF] sass:
    [INF] 
    [INF] -before-sass:
    [INF] 
    [INF] -sass:
    [INF] executing compass using system installed ruby runtime
    identical ../css/app.css 
    [INF] 
    [INF] -after-sass:
    [INF] 
    [INF] page:
    [INF] 
    [INF] -before-page:
    [INF] 
    [INF] -page:
    [INF] building application
    [INF] Deploying your application to /home/janmejay/jjapp/build/newsencha/package
    [INF] Copied /home/janmejay/jjapp/app.js to /home/janmejay/jjapp/build/newsencha/package/app.js
    [INF] Copied /home/janmejay/jjapp/resources/css/app.css to /home/janmejay/jjapp/build/newsencha/package/resources/css/app.css
    [WRN] File or folder /home/janmejay/jjapp/resources/images not found
    [INF] Copied /home/janmejay/jjapp/resources/icons
    [INF] Copied /home/janmejay/jjapp/resources/startup
    [INF] Resolving your application dependencies (file:////home/janmejay/jjapp/index.html)
    [INF] Compiling app.js and dependencies
    [INF] Loading classpath entry /home/janmejay/jjapp/touch/src
    [INF] Loading classpath entry /home/janmejay/jjapp/app.js
    [INF] Loading classpath entry /home/janmejay/jjapp/app
    [INF] Concatenating output to file /home/janmejay/jjapp/build/newsencha/package/app.js
    [INF] Completed compilation.
    [INF] Processed remote file touch/sencha-touch.js
    [INF] Processed local file app.js
    [INF] Minified app.js
    [INF] Generated app.json
    [INF] Embedded microloader into index.html
    [INF] Generating native package
    [INF] Packaging your application as a native app to /home/janmejay/jjapp/build/newsencha/native ...
    [ERR] failed running native packager
    [ERR] Created directory /home/janmejay/jjapp/build/newsencha/native/src/com/janmejay/testapp
    Added file /home/janmejay/jjapp/build/newsencha/native/src/com/janmejay/testapp/STActivity.java
    Created directory /home/janmejay/jjapp/build/newsencha/native/res
    Created directory /home/janmejay/jjapp/build/newsencha/native/bin
    Created directory /home/janmejay/jjapp/build/newsencha/native/libs
    Created directory /home/janmejay/jjapp/build/newsencha/native/res/values
    Added file /home/janmejay/jjapp/build/newsencha/native/res/values/strings.xml
    Created directory /home/janmejay/jjapp/build/newsencha/native/res/layout
    Added file /home/janmejay/jjapp/build/newsencha/native/res/layout/main.xml
    Added file /home/janmejay/jjapp/build/newsencha/native/AndroidManifest.xml
    Added file /home/janmejay/jjapp/build/newsencha/native/build.xml
    Added file /home/janmejay/jjapp/build/newsencha/native/proguard-project.txt
    Copy operation failed src=st-res/android//nimblekit.jar dst=/home/janmejay/jjapp/build/newsencha/native//libs/nimblekit.jar
    "/home/janmejay/Downloads/android-sdk-linux/tools/android" create project --target android-7 --name Testapp --activity STActivity --path "/home/janmejay/jjapp/build/newsencha/native/" --package com.janmejay.testapp
    Can not open source file
    Failed to copy packager library
    Failed to package application
    
    
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    [ERR] /home/janmejay/jjapp/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#515)
    [ERR]    [anonymous] (x-app-build:515)
    [ERR]    each (/home/janmejay/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:695)
    [ERR]    runAppBuild (x-app-build:304)
    [ERR]    [anonymous] (x-app-build:571)
    [ERR]    x_app_build (x-app-build:569)
    [ERR]    <script> (anonymous:1)
    [ERR] /home/janmejay/jjapp/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#515)
    [ERR]    [anonymous] (x-app-build:515)
    [ERR]    each (/home/janmejay/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:695)
    [ERR]    runAppBuild (x-app-build:304)
    [ERR]    [anonymous] (x-app-build:571)
    [ERR]    x_app_build (x-app-build:569)
    [ERR]    <script> (anonymous:1)
    [ERR]    [anonymous] (x-app-build:515)
    [ERR]    each (/home/janmejay/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:695)
    [ERR]    runAppBuild (x-app-build:304)
    [ERR]    [anonymous] (x-app-build:571)
    [ERR]    x_app_build (x-app-build:569)
    [ERR]    <script> (anonymous:1)
    [ERR]    [anonymous] (x-app-build:515)
    [ERR]    each (/home/janmejay/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:695)
    [ERR]    runAppBuild (x-app-build:304)
    [ERR]    [anonymous] (x-app-build:571)
    [ERR]    x_app_build (x-app-build:569)
    [ERR]    <script> (anonymous:1)
    [ERR] 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    [ERR]  Met hod)
    [ERR] 
    [ERR] Total time: 50 seconds
    [ERR] com.sencha.exceptions.BasicException: The following error occurred while executing this line:
    /home/janmejay/jjapp/.sencha/app/build-impl.xml:249: com.sencha.exceptions.ExScript: Wrapped com.sencha.exceptions.ExBuild: failed running native packager (x-app-build#515)
       [anonymous] (x-app-build:515)
       each (/home/janmejay/bin/Sencha/Cmd/3.1.1.274/ant/ant-util.js:695)
       runAppBuild (x-app-build:304)
       [anonymous] (x-app-build:571)
       x_app_build (x-app-build:569)
       <script> (anonymous:1)
    Regards
    Janmejay
    about.me/janmejaymohapatra

  7. #7

    Default same same

    I have this exact same issue - easily identified by

    Code:
    Can not open source file
    Failed to copy packager library
    Failed to package application
    I have been scouring the google for answers for the last two days and I've found a few threads where someone had the same issue but it was perceived to be a different issue. I have attempted the following:

    • Update Sencha Cmd installation
    • Update Sencha Touch SDK
    • Update project
    • Built new project from scratch in another location
    • (both sencha SDK and project folder inside and outside of home directory)
    • Sun/Oracle 6 JDK
    • Sun/Oracle 7 JDK
    • OpenJDK 6
    • Building a project with a target of android-7
    • Building a project with a target of android-8
    • Building a project with a target of android-15
    • Building a project with a target of android-16
    • Building a project with a target of android-17
    • Executing the copy and "android create" commands (described below) manually and re-running the build

    It seems to me the source of the failure is somewhere around creating the subdirectories below "native". It's trying to copy the nimblekit.jar file into libs.
    Then it hits the "android create project" command which is trying to create and populate the res, bin and lib directories.

    Both of these commands report a failure. However, the paths seem correct and copy/paste/execute the "android create project" line from the output it runs that piece without issue, creating and populating the subdirectories. As noted above, I attempted running the "sencha app build native" command after manually running the "android create" command and copying the nimblekit.jar file manually. When it gets to "android create" it balks about the native directory not being empty and suggests "android update project" as an appropriate alternative, but the end result is the same.

    I don't know where to go from here. I'd love to see someone who has contributed to the build process chime in. Is it possible the issue is the order of execution between the nimblekit copy and android create being reversed? The order of output makes it appear the copy command is trying to copy nimblekit.jar into the libs folder which is created AFTERWARD by the android create call.

    Now I'm off to reverse engineer the build process to see if I can find what's bombing.

    If it weren't for the lack of performance in the other options I would give up at this point and go with something like phonegap or appcelerator.

  8. #8
    Sencha User kostysh's Avatar
    Join Date
    Nov 2011
    Location
    Odessa, Ukraine
    Posts
    176

    Default

    As I know: native builds feature is supported by Sencha CMD on OS X and Windows platform only, so not supported on Linux. Not sure about latest version of Sencha CMD (not tested yet) but previous version not able to make native build on Linux.


    Because of this issue I created virtual machine with Windows on my Linux desktop.

  9. #9

    Default

    I was starting an application for android and doing some tests with framework and libs.
    After long time trying to "compile" using sencha touch to native android, I could see that It is not a good choice...
    After read this thread I could confirm that this problem is not so simple.
    It is necessary to create a VM with other OS!

    Now I will try to see Phonegap option.
    Do someone recomend other platforms of development for cross-platform in mobile environment (Android/iOS) ?

    Thank you!

  10. #10

    Default Alternatives

    The only good options I've found are Phonegap and Appcelerator, but all the benchmarks and reports show Sencha has the best performance. That's why I am trying to stick with it.

    As for the need to run a virtual OS, that's obviously an option but quite a headache and ignores the question. Sencha used to "not support" linux builds, but that language has been removed from the docs and the stbuild binary has been added to the Linux version. I'm guessing it just doesn't have all the bugs worked out yet - but it should work.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •