Simulator not starting

Hello,

I've just created a brand new Win10 VM and wanted to install a clean Eclipse environment.
Downloaded:
  • Eclipse Oxygen 1 Release (4.7.1)
  • Java jdk-9_windows-x64_bin

After installing Eclipse and Java, I had to changed the Ini-File and add the following entry:
--add-modules=ALL-SYSTEM
Then added the ConnectIQ URL to download the SDK.

Everything seemed successful, but the compiler didn't start. Found out that it is related to Java JDK 1.9, which is not supported :(
Downloaded:
  • Java jdk-8u144-windows-x64

Now the compiler automatically found its JDK 1.8 components automatically!
Forgot to add the development key, which was observed.
But from then on, the Simulator does not start. There is nothing in the Console, nor in .metadata\.log

How can I find out what's wrong? Or where is a useful supported version overview from garmin?

The GetTheSDK says nothing about supported Java or Eclipse versions.

The GettingStarted is even worse:
you?ll need Oracle Java? Runtime Environment 8 (version 1.8.0 or higher) installed.

Which is wrong! higher is not supported by the Eclipse compiler!
Eclipse Mars or newer

Would suggest, that Oxygen is fine...
  • What info do I have to submit, that we can make it run?
    Are there some further Error-Logs?

    Executing "Run As" gives me:
    BUILD: Complete
    Failed to connect to the simulator.

    Connect IQ => Start Simulator
    Open Simulator... And then nothing happens. No message in the Console.

    That's what the .log includes:
    !SESSION 2017-10-09 13:12:04.460 -----------------------------------------------
    eclipse.buildId=4.7.1.M20170906-1700
    java.version=1.8.0_144
    java.vendor=Oracle Corporation
    BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
    Framework arguments: -product org.eclipse.epp.package.java.product
    Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.java.product

    !ENTRY org.eclipse.egit.ui 2 0 2017-10-09 13:13:32.465
    !MESSAGE Warning: The environment variable HOME is not set. The following directory will be used to store the Git
    user global configuration and to define the default location to store repositories: 'C:\Users\Thomas'. If this is
    not correct please set the HOME environment variable and restart Eclipse. Otherwise Git for Windows and
    EGit might behave differently since they see different configuration options.
    This warning can be switched off on the Team > Git > Confirmations and Warnings preference page.

    !ENTRY IQ_IDE 2 0 2017-10-09 13:14:36.351
    !MESSAGE Simulator opened but connection not made.
    !STACK 0
    com.garmin.connectiq.common.communication.shell.ShellProcessException: Couldn't connect to the simulator.
    at com.garmin.connectiq.ide.shell.ShellManager_2_3_0.runShellDirectly(ShellManager_2_3_0.java:110)
    at com.garmin.connectiq.ide.shell.ShellManager_2_3_0.connectToSimulator(ShellManager_2_3_0.java:340)
    at com.garmin.connectiq.ide.handlers.SimulatorHandler$1.run(SimulatorHandler.java:73)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

    !ENTRY IQ_IDE 2 0 2017-10-09 13:19:57.980
    !MESSAGE Simulator opened but connection not made.
    !STACK 0
    com.garmin.connectiq.common.communication.shell.ShellProcessException: Couldn't connect to the simulator.
    at com.garmin.connectiq.ide.shell.ShellManager_2_3_0.runShellDirectly(ShellManager_2_3_0.java:110)
    at com.garmin.connectiq.ide.shell.ShellManager_2_3_0.connectToSimulator(ShellManager_2_3_0.java:340)
    at com.garmin.connectiq.ide.handlers.SimulatorHandler$1.run(SimulatorHandler.java:73)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)



    Seems to me that it only contains the effect of the none starting simulator, not the reason.

    Windows EventLog does not contain any related stuff.
  • If it is a clean VM, you may be running into the issue that I reported here a month ago. If that is the issue, the solution is to install the Microsoft Visual Studio 2013 runtime libraries, which are available from Microsoft. I believe that the ones you need should be available here (probably just the x86 ones).

    If you'd like to verify before you install the runtimes, the following procedure should help..
    • Open up a Command Prompt
    • Navigate to the bin directory within the ConnectIQ SDK install. e.g., type cd c:\connectiq-sdk-2.3.4\bin and press return/enter.
    • Run the simulator program directly. e.g., type sumulator.exe and press return/enter.
    If you get an error about not having msvcp120.dll or msvcr120.dll, then that is the problem. Assuming I've linked you to the correct version, they are included in the installer I linked to above.

    If you get some other error, let us know what it is and I'll take some time to reproduce and report it.

    Travis
  • Former Member
    Former Member over 7 years ago
    I'm new to the Eclipse/ConnectIQ. As my first project I want to make a watch face. I have completed the procedure:
    • Open up a Command Prompt
    • Navigate to the bin directory within the ConnectIQ SDK install. e.g., type cd c:\connectiq-sdk-2.3.4\bin and press return/enter.
    • Run the simulator program directly. e.g., type sumulator.exe and press return/enter.
    All is good. The simulator opened right up. The problem comes when in Eclipse, I the attached message of a missing font. I followed the Programmers Guide, removed and re-installed, but I keep getting the same error.

    Any help and or guidance would be great.

    Patcommunity.garmin.com/.../1261834.png
  • How are you trying to access the font? FONT_*?
  • Former Member
    Former Member over 7 years ago
    I follow the instructions in the Programmers Guide. Start Eclipse, open the Simulator, run the Connect IQ program. I am completely new to this, I've look for the font in bin\fonts, no luck. I don't know how to access the fonts i Eclipse to change it. Everything is set on default.
    Early I went step by step in the Connect IQ book to do the example, but got the same message for invalid font.
    ​​​​​​
    Pat
  • No, Jim I didn't.
    The Simulator also does not start without a solution (Menu: Connect IQ => Start Simulator).


    I'll try Travis approach when I'm back again from a businesstrip and let you know if it works for me.
    Hopefully tomorrow! Greetings from Bavaria :)
  • ...I've look for the font in bin\fonts, no luck...


    I think you are running into something different from the original post. I'm sure that your having issues since you are missing the font needed. Do you have any files listed there? Is it possible that something was deleted. I am looking in the bin directory for the latest releases sdk and see all of them here.

    Thanks,
    -Coleman
  • Former Member
    Former Member over 7 years ago
    I unzipped 2 different downloaded SDK zips from Connect (connectiq-sdk-win-2.3.4) the first one unzipped with 134 fonts (starting with FNT) the second only had 34 fonts. Downloaded both from https://developer.garmin.com/connect-iq/sdk0

    Here is what Ive downloaded and installed:
    - eclipse-inst-win64
    - jre-8u144-windows-x64
    - connectiq-sdk-win-2.3.4

    Thanks,
    Pat
  • Former Member
    Former Member over 7 years ago
    I think I may have found an issue. I just downloaded another SDK and it is 166mb. The others must have errors, because the downloaded zips are different sizes.

    Pat
  • Pat,

    I think you are correct. The link you provided didn't bring up a valid download sight for me. Try this one: https://developer.garmin.com/connect-iq/sdk/

    The download I have on Windows is ~169mb and extracts to ~233mb

    Thanks,
    -Coleman