App Export Wizard

Hello,

I have problem. When I try to export any project for more devices from Eclipse Luna, it shows me a message

Package Manager: Problem building app package. See console for details.
======================================================
BUILD: C:\Program Files\Java\jre1.8.0_31\bin\java -Dfile.encoding=UTF-8 ..............
BUILD: Complete

... and there's no project.iq file. It makes only TEMP folder with more PRG files but no IQ file. When I set the project for one device (D2 in my case) console shows the same error message but it makes IQ file (I think, it is corrupted, it has only 4kB).


EDIT: I found, it makes described problem when I have the watchface where I set the PROPERTIES-CONNECTIQ-ERMISSIONS in Eclipse for "Steps"
  • Former Member
    Former Member over 10 years ago
    Where you able to resolve the problem you were running into? If not, can you provide the SDK and plug-in version you are using? Including the Steps permission for a watch face shouldn't cause any compiling/packaging errors.
  • Hi Ken,

    sorry for late answer. I have this:

    Luna Service Release 2 (4.4.2)
    Connect IQ SDK 1.1.3

    I don't know which plugin do you mean.


    When I click on the watchface project with right mouse button and select Properties->Connect IQ->Permissions and select here the permission for steps, I am not able to export the project. It is possible when I disable (uncheck) the "steps" permission.
  • Former Member
    Former Member over 10 years ago
    To check you plug-in version: Help > Install New Software... > What is already installed? (it's bottom right of the window) > Plug-ins and look for the Connect IQ plug-in.

    To check for updates: Help > Check for Updates. The latest version of the plug-in is 1.1.3.

    I'm guessing what is happening is a compiler error is occurring while building the app package and the message is not being propagated up to the UI correctly. Would you be willing to send your project to [email][email protected][/email] so we can take a look and see if we can figure out what's going on?
  • Connect IQ IDE 1.1.3
    Connect IQ SDK Manager 1.1.3
    Eclipse IDE for........ 4.4.2.20150219-0708
  • I'm getting the same message.

    I can Build for Device successfully for all 4 watch models that I'm targeting, but then get

    Package Manager: Problem building app package. See console for details.

    When I do the App Export Wizzard.

    The versions I have are:
    Connect IQ IDE 1.1.3
    Connect IQ SDK Manager 1.1.3
    Eclipse IDE for Java Developers 4.5.0.20150621-1200

    I get this on 2 different projects.

    Here's the entire console output.

    ======================================================
    BUILD: C:\Program Files\Java\jdk1.7.0_45\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar;C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\monkeybrains.jar; com.garmin.monkeybrains.Monkeybrains -e -a C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.db -i C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.debug.xml -o C:\Users\Rog\Garmin\MRunApp.iq -z C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-epix\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fenix3\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fr920xt\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-vivoactive\resources.xml -m C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\manifest.xml -u C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\devices.xml -p C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\projectInfo.xml C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\AlertPicker.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MO2Sensor.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunApp.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunMenuDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunPersist.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView0.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView1.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView2.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView3.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunViewPair.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewAlert.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewSave.mc
    ======================================================
    BUILD: C:\Program Files\Java\jdk1.7.0_45\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar;C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\monkeybrains.jar; com.garmin.monkeybrains.Monkeybrains -a C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.db -i C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.debug.xml -o C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\bin\MRunApp.prg -z C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-epix\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fenix3\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fr920xt\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-vivoactive\resources.xml -m C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\manifest.xml -u C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\devices.xml -p C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\projectInfo.xml C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\AlertPicker.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MO2Sensor.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunApp.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunMenuDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunPersist.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView0.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView1.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView2.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView3.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunViewPair.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewAlert.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewSave.mc
    BUILD: Complete
    BUILD: Complete
    Package Manager: Problem building app package. See console for details.
    ======================================================
    BUILD: C:\Program Files\Java\jdk1.7.0_45\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar;C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\monkeybrains.jar; com.garmin.monkeybrains.Monkeybrains -a C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.db -i C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.debug.xml -o C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\bin\MRunApp.prg -z C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-epix\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fenix3\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fr920xt\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-vivoactive\resources.xml -m C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\manifest.xml -u C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\devices.xml -p C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\projectInfo.xml C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\AlertPicker.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MO2Sensor.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunApp.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunMenuDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunPersist.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView0.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView1.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView2.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView3.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunViewPair.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewAlert.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewSave.mc
    BUILD: Complete
  • Former Member
    Former Member over 10 years ago
    Roger, if you run the command that's generated by Eclipse (below) in a command prompt what output do you see? I suspect there's an error message that's not getting propagated up to the UI but without that error message it will be hard to determine exactly what's going wrong.

    C:\Program Files\Java\jdk1.7.0_45\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar;C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\monkeybrains.jar; com.garmin.monkeybrains.Monkeybrains -e -a C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.db -i C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.debug.xml -o C:\Users\Rog\Garmin\MRunApp.iq -z C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-epix\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fenix3\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fr920xt\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-vivoactive\resources.xml -m C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\manifest.xml -u C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\devices.xml -p C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\projectInfo.xml C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\AlertPicker.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MO2Sensor.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunApp.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunMenuDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunPersist.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView0.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView1.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView2.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView3.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunViewPair.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewAlert.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewSave.mc
  • Former Member
    Former Member over 10 years ago
    Same thing for you MR3SKA, if you run the command that's printed to the console in Eclipse from a command prompt what is the output?
  • Hi Ken,

    I've never run from the command line before so I hope I did this correctly. It seemed to work. There were no errors and it produced a .iq file. Here's what I did at the command line.

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Rog>set PATH=C:\Users\Rog\Documents\ConnectIQ_SDK_1_1_3\bin

    C:\Users\Rog>PATH
    PATH=C:\Users\Rog\Documents\ConnectIQ_SDK_1_1_3\bin

    C:\Users\Rog>cd C:\Program Files\Java\jdk1.7.0_45\bin

    C:\Program Files\Java\jdk1.7.0_45\bin>monkeyc -o C:\Users\Rog\Garmin\MRunApp.iq -z C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources\resources.xml;C:\Users\Rog\
    Documents\Eclipse7\workspace\MRunApp\resources-epix\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fenix3\resources.xml;C:\Users\Rog\Documents\
    Eclipse7\workspace\MRunApp\resources-fr920xt\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-vivoactive\resources.xml -m C:\Users\Rog\Documents\
    Eclipse7\workspace\MRunApp\manifest.xml -u C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\devices.xml -p C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\projectInf
    o.xml C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\AlertPicker.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MO2Sensor.mc C:\Users\Rog\Documents
    \Eclipse7\workspace\MRunApp\source\MRunApp.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\s
    ource\MRunMenuDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunPersist.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView0.mc C:
    \Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView1.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView2.mc C:\Users\Rog\Documents\Eclipse7\
    workspace\MRunApp\source\MRunView3.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunViewPair.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\Vi
    ewAlert.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewSave.mc

    C:\Program Files\Java\jdk1.7.0_45\bin>


    I renamed the IQ file with a .zip extension and was not able to open it so I don't know if it's valid or not. It's 78K where it was 94K when I compiled it before with nearly the same code. I'll email you the .iq file to see if it's what you would expect.
  • Former Member
    Former Member over 10 years ago
    I've never run from the command line before so I hope I did this correctly.


    It looks like you have it correct except you'll want to add a -e option to your command. The -e option tells the compiler to generate a .iq file instead of a .prg file. That might be the problem you are seeing with the output file being corrupt.

    Just fyi, you can actually just copy the command Eclipse prints and paste it into a command prompt and run it because all of the paths are absolute. The catch is you might have to wrap paths that have spaces in them with quotes (usually the Java executable path has spaces on Windows). Based on the export command you quoted earlier I think the following should work:

    "C:\Program Files\Java\jdk1.7.0_45\bin\java" -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -classpath "C:\Program Files\Java\jdk1.7.0_45\lib\tools.jar";C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\monkeybrains.jar; com.garmin.monkeybrains.Monkeybrains -e -a C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.db -i C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\api.debug.xml -o C:\Users\Rog\Garmin\MRunApp.iq -z C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-epix\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fenix3\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-fr920xt\resources.xml;C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\resources-vivoactive\resources.xml -m C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\manifest.xml -u C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\devices.xml -p C:\Users\Rog\Documents\connectiq-sdk-win-1.1.3\bin\projectInfo.xml C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\AlertPicker.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MO2Sensor.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunApp.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunMenuDelegate.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunPersist.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView0.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView1.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView2.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunView3.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\MRunViewPair.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewAlert.mc C:\Users\Rog\Documents\Eclipse7\workspace\MRunApp\source\ViewSave.mc
  • Hi Ken,

    I am not sure If I understand it. I can copy the line from Eclipse to standard CMD and it will make an IQ file for me?

    Thanks