title: j2me Execution failed with error code 1, CLDC-run
body: <p>I've made an j2me application in NetBeans 7.1 with both j2me SDK 3.0 and 3.0.5. A few days ago, before a major change in code which doesn't affect the startup, it ran fine. When trying to run the app now it starts the emulator, but fails to start the app. The output is showing the following:</p>
  
  <pre><code>Starting emulator in execution mode
  Installing suite from: http://127.0.0.1:16200/BuitenBeter.jad
  Processing UPDATE_CLASS
  </code></pre>
  
  <p>Upon closing the emulator the following error shows:</p>
  
  <pre><code>*** Error ***
  Failed to execute MIDlet suite
  C:\Users\Willem\Documents\NetBeansProjects\BuitenBeter\nbproject\build-impl.xml:782: Execution failed with error code 1.
  BUILD FAILED (total time: 1 minute 16 seconds)
  </code></pre>
  
  <p>The xml it's pointing to is:</p>
  
  <pre><code>&lt;!--cldc-run--&gt;
  &lt;target name="cldc-run" if="cldc-platform.trigger"&gt;
      &lt;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}"/&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>So I'm assuming that the CLDC fails to run.</p>
  
  <p>When I created an empty new project with just the "Hello World" code in it, it runs fine with the same configuration. Which is:</p>
  
  <ul>
  <li>j2me SDK 3.0.5</li>
  <li>DefaultCldcPhone1</li>
  <li>CLDC-1.1</li>
  <li>MIDP-2.0</li>
  <li>All the optional Packages selected</li>
  </ul>
  
  <p>I've tried with SDK 3.0, I've tried without all optional packages, I've tried using CLDC-1.1.1. But when selecting CLDC-1.1.1 it automaticly does the following:</p>
  
  <pre><code>Platform UEI-1.0.1 does not support "CLDC-1.1.1" configuration, setting back to CLDC-1.1.
  </code></pre>
  
  <p>So far after Googling I've tried the following sollutions:</p>
  
  <ul>
  <li>Simply restart NetBeans</li>
  <li>Stopping Windows Firewall</li>
  <li>Using different devices and configurations</li>
  </ul>
  
  <p>Can anyone tell me what's wrong or what I can do to fix this?</p>