Failed opening simulator

*** Resolved ***

Hi, I have just managed to install the Connect IQ plug-in into Eclipse and have created my first app but I cannot open the Garmin simulator, either through Eclipse nor directly from the Windows file system. In Eclipse, I get the following error message:

Failed opening simulator.
Cannot run program "C:\Eclipse\garmin\connectiq-sdk-win-3.0.7-2018-12-17-efeb3e3\bin\simulator.exe" (in directory "C:\Eclipse\garmin\connectiq-sdk-win-3.0.7-2018-12-17-efeb3e3\bin"): CreateProcess error=5, Access is denied

I am logged in with an admin user so should not be a problem with user rights. In the file system, I get this:

"Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item"

I am running Windows 10, could it be some security setting that prevents me from executing this file? Perhaps the certificate that signed the application is not trusted by the operating system? When I downloaded the SDK through Eclipse I got an option to accept some certificate so that should be taken care of I guess? I really have no clue. I tried remove and re-install eclipse and the Garmin SDKs but didnt help.

Im running the SDK version 3.0.7.

Thanks!
  • The sim uses the %tmp% directory in windows. Can you access that?
  • - In Windows 10, even admin users don't have admin rights by default. (This is why you often get a "UAC" pop-up dialog asking you to confirm certain actions or changes, like installing software). In any case, CIQ should not require admin rights for anything

    Since removing and redownloading the Garmin SDKs didn't help, I guess it's probably not a problem with another process somehow having that file locked.

    Try this:
    • In File Explorer, right-click on C:\Eclipse\Garmin
    • Select Properties
    • Select Security
    • Note the permissions for Authenticated Users. you should see "Read & Execute" at the very least.
    • If not, press Advanced
      • Press Add
      • Press "Select a Principal"
      • Type "Authenticated Users"
      • Check the "Read & Execute", "List folder Contents" and "Read" permissions. You may also wish to set the "Modify" and "Write" permissions.
      • Press OK
      • Check the box that says "Replace all child object permission entries..."
      • Press OK
      • Press OK once again

    If none of that works, try running simulator.exe from a command prompt or powershell and see if that gives different results

    If that doesn't work, try this old school tool to see if anyone else possibly has that file locked:
    http://www.emptyloop.com/unlocker/

    If all of that fails, try relocating your CIQ SDK folder. I hate putting things in the drive root, but I use C:\connectiq\.
  • Thank you for the replies. Problem solved. It turned out to be my F-secure deepguard anti virus client who caused the issue. Ive added the simulator to trusted apps and now it works fine.