|
-
Mar 3rd, 2010, 03:37 AM
#1
Thread Starter
Randalf the Red
[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?
.
-
Mar 3rd, 2010, 07:02 AM
#2
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
-
Mar 3rd, 2010, 08:06 AM
#3
Thread Starter
Randalf the Red
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??
.
-
Mar 3rd, 2010, 08:35 AM
#4
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
-
Mar 3rd, 2010, 09:11 AM
#5
Thread Starter
Randalf the Red
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
-
Mar 3rd, 2010, 09:34 AM
#6
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
-
Mar 6th, 2011, 12:44 AM
#7
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|