Results 1 to 7 of 7

Thread: [RESOLVED] Netbeans 6.8 Execution Failed With Error Code 1

  1. #1

    Thread Starter
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Resolved [RESOLVED] Netbeans 6.8 Execution Failed With Error Code 1

    I am trying to build a sample Java MIDP game for mobile platform. I have downloaded and installed Java ME SDK 3.0 and NetBeans 6.8. I am browsing through the tutorial on building Java mobile games from this URL:

    http://netbeans.org/kb/docs/javame/g...creencast.html

    However after trying to run the application, it shows the following:

    Starting emulator in execution mode
    <Someplace>\MobileApps\Hello\nbproject\build-impl.xml:889: Execution failed with error code 1.
    BUILD FAILED (total time: 21 seconds)

    Here's the relevant section from the build-impl.xml file:

    Code:
        <target name="cldc-run" if="cldc-platform.trigger">
            <nb-run jadfile="${dist.dir}/${dist.jad}" jarfile="${dist.dir}/${dist.jar}" jadurl="${dist.jad.url}" device="${platform.device}" platformhome="${platform.home}" platformtype="${platform.type}" execmethod="${run.method}" securitydomain="${evaluated.run.security.domain}" commandline="${platform.runcommandline}" classpath="${platform.bootclasspath}:${dist.dir}/${dist.jar}" cmdoptions="${run.cmd.options}"/>
        </target>
    Checking the internet, I found one post and one response, which simply said I need to install the SDK, which I have already done. What's going wrong?

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  2. #2
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Netbeans 6.8 Execution Failed With Error Code 1

    A lot of things might have caused this. especially since the error message is a bit vague.
    The SDK you've installed is most likely the MIDP2 platform. Try installing the CLDC SDK. Hopefully this will do the trick.
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  3. #3

    Thread Starter
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Re: Netbeans 6.8 Execution Failed With Error Code 1

    But the Java ME SDK 3.0 is supposed to include everything, and the NetBeans 6.8 IDE is reported to have been tested against it!

    Supported technologies for NetBeans 6.8 IDE:
    http://netbeans.org/community/releas...d_technologies

    Here it says the Java ME SDK 3.0 is CDC and CLDC rolled into one:
    http://java.sun.com/javame/downloads/sdk30.jsp

    So what's wrong??

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Netbeans 6.8 Execution Failed With Error Code 1

    Are you using any non-midp technologies in your project? Bluetooth, Wifi, ...etc?
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5

    Thread Starter
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Re: Netbeans 6.8 Execution Failed With Error Code 1

    It's my first MIDP project. I have posted the link to the tutorial I was following.

    [edit]
    The problem appears to have been resolved now. The emulator opened and I was able to test the code successfully. I am guessing it must be an issue with the ZoneAlarm firewall. Now that I ran the code, the firewall prompted me about three times for the emulator being invoked. After allowing all three instances, the emulator ran fine. I am suspecting the earlier times the firewall blocked the emulator from running.
    [/edit]
    .
    Last edited by honeybee; Mar 3rd, 2010 at 09:29 AM. Reason: Problem resolved
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [RESOLVED] Netbeans 6.8 Execution Failed With Error Code 1

    Sorry I don't have it installed. Try asking in Sun forums (in case Oracle guys didn't rename that)
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  7. #7
    New Member
    Join Date
    Mar 2011
    Posts
    1

    Re: [RESOLVED] Netbeans 6.8 Execution Failed With Error Code 1

    hi i have windows 7 64 bit and i had this problem "Execution failed with error code 1"
    so i unistalled my netbeans and sdk 3 64 bit and instead i installed sdk 3 32 bit and netbeans again and my problem solved.for java me sdk 3 64 bit dont work.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width