Newbie question - problem launching simulator when trying to run sample project

Had installed CIQ ages ago and did a hello world data field test then but thought try again with the latest version.

Think managed to install everything onto a Win 10 machine - version 2.2.1 and Eclipse Neon

I created a sample data field project and tried to run it. Seems to build OK as below

BUILD: C:\Program Files\Java\jdk1.8.0_25\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar "C:\Program Files\Connect IQ\2.2.1\bin\monkeybrains.jar" -o C:\Users\Tim\Eclipse\workspace\TestDataField\bin\TestDataField.prg -w -y C:\Users\Tim\Eclipse\workspace\keys\ciq\developer_key -z C:\Users\Tim\Eclipse\workspace\TestDataField\resources\drawables\drawables.xml;C:\Users\Tim\Eclipse\workspace\TestDataField\resources\strings\strings.xml -m C:\Users\Tim\Eclipse\workspace\TestDataField\manifest.xml C:\Users\Tim\Eclipse\workspace\TestDataField\source\TestDataFieldView.mc C:\Users\Tim\Eclipse\workspace\TestDataField\source\TestDataFieldApp.mc -d fr630_sim -s 1.3.1
BUILD: WARNING: The launcher icon (30x30) is smaller than the specified launcher icon size of the device 'fr630' (40x40). Padding will be added to the image to center it.
BUILD: Complete
Attempt 1 to connect to simulator...

However the connection with simulator shows error (in red)

'""C:\Program' is not recognized as an internal or external command,
operable program or batch file.
'""C:\Program' is not recognized as an internal or external command,
operable program or batch file.

Sounds like trying to access my SDK that I put in C:\Program Files\Connect IQ\2.2.1 but is having a problem parsing the path (perhaps because of the spaces) ?

I can open the simulator window from the Connect IQ menu in Eclipse but noticed if I try to do Connection, Start it complains about needing to connect an Android device to ADB.

Any ideas welcomed - sounds like I am missing something obvious?

Thanks
Tim
  • Hey Tim! How did I know a Forerunner was involved? :)

    As a quick test I copyied my 2.2.1 SDK to c:\Tim Folder\
    and get this when trying to start the sim from eclipse: (changing nothing else in my setup except the location of the SDK)
    '""C:\Tim' is not recognized as an internal or external command,
    operable program or batch file.
    '""C:\Tim' is not recognized as an internal or external command,
    operable program or batch file.


    So it looks like the space is causing the problem (IMHO it shouldn't). For me, the sim starts, but it it looks like the error is when it tries to launch the app.

    If I take out the space (c:\TimFolder) things work fine.

    Things should work if you put the SDK in a path with no spaces. (I user c:\connect-iq as I often have a couple versions of the SDK on the machine :) )

    The Garmin CIQ folks are active in these threads, so I'm sure a ticket will be opened about this if there isn't one already!
  • Ah ha - that's it. Many thanks.

    I moved the SDK to a folder path with no spaces in it and can then open the simulator and see my data field - not that it does anything just yet!