"Aborting launch due to failed build. " Message

Hi,

When I try and launch the simulator, I get the message "Aborting launch due to failed build." The project successfully builds (I get the "BUILD: Complete" message), but running generates this error.

The bizarre thing, is that I have 6 projects are they all give the same message. Even more bizarre, is all 6 projects on other PC's work perfectly.

I've tried running the build in the command-line and no warnings or errors also appear.

I am really keen to get my main PC running and testing, anybody any ideas?

Cheers
Chris
  • I have the same problem since update to SDK 1.2.1
    Found Transport: tcp
    Connecting...
    Found Transport: tcp
    Connecting...


    Only tried compiling and running in Eclipse and have not that problem before.
    Simulator starting with blank screen and nothing happend.

    EDIT:
    After reboot all back to normal. Must be some problem with PATH on Windows.
  • Travis, if you'd like to send along the source, that may help, especially if it's reproducible here with your projects.

    Test case sent via e-mail.
  • Eclipse is becoming more and more unusable.
    it's nearly going to be 100% failure each time the project is asked to RUN.

    while copying the compile process to the command line and running it from there works, as does running the compiled PRG in the simulator, it seems that i can't do any of the user-settings changes???
    Each time I tried to do the "send settings" nothing changes (i don't use onSettingsChanged).

    I kill the simulator running app and then re-run it again and yet there is no changes....
  • Eclipse is becoming more and more unusable.
    it's nearly going to be 100% failure each time the project is asked to RUN.

    while copying the compile process to the command line and running it from there works, as does running the compiled PRG in the simulator, it seems that i can't do any of the user-settings changes???
    Each time I tried to do the "send settings" nothing changes (i don't use onSettingsChanged).

    I kill the simulator running app and then re-run it again and yet there is no changes....


    Have you tried deleting simulator SET files?

    https://forums.garmin.com/showthread.php?333763-Whaere-EXACTLY-csn-I-find-the-SET-on-a-mac-to-delete-to-get-the-user-settings-to-work
  • That's what I've been doing when using the windows command line.

    on a Mac, somehow..... it's tiresome
  • Use a makefile.... make DEVICE=fenix3 veryclean all run does it all.

    Travis
  • Sorry Travis. How does that go?

    Where does the makefile go to?
  • I have the same problem now

    Aborting launch due to failed build.

    Developing with the instability and weird problems like having to randomly delete SET files is proving to be a major pain !!!!!

    I do not have time to figure out how to fix this crap.

    HELP! How can I fix it? PLEASE GIVE DETAILED STEP BY STEP INSTRUCTIONS

    Thank you...

    :-(
  • Former Member
    Former Member
    Aborting launch due to failed build.

    Since experimenting with App Settings i'm getting this error quiet often.
    CIQ v.1.2.1
    Eclipse 4.4.2

    Is there a workaround available?
    Deleting SET files or Clean Project does not help.

    Regards
    SScale20
  • Java Path Causing The Issue

    I think I figured this out. When trying to run the application in Eclipse it was uses the incorrect path to java:

    BUILD: C:\Program Files\Java\bin\java -Dfile.encoding=UTF-8 -Dapple.awt.UIElement=true -jar C:\Garmin\bin\monkeybrains.jar -o C:\Users\SWADSWOR\workspace\TestProject\bin\TestProject.prg -w -y C:\Garmin\developer_key.der -z C:\Users\SWADSWOR\workspace\TestProject\resources\drawables\drawables.xml;C:\Users\SWADSWOR\workspace\TestProject\resources\layouts\layout.xml;C:\Users\SWADSWOR\workspace\TestProject\resources\strings\strings.xml -m C:\Users\SWADSWOR\workspace\TestProject\manifest.xml C:\Users\SWADSWOR\workspace\TestProject\source\TestProjectView.mc C:\Users\SWADSWOR\workspace\TestProject\source\TestProjectApp.mc -d square_watch_sim -s 2.1.1
    BUILD: Complete
    Aborting launch due to failed build.


    It was looking for "java" in my "C:\Program Files\Java\bin" directory when in fact my Java path is "C:\Program Files\Java\jre\bin". Since I couldn't find anything in Eclipse to change this, I copied all the files in the "C:\Program Files\Java\jre" directory and placed them in the "C:\Program Files\Java\" directory. I re-ran the program and it worked!

    Hope this helps!