File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Trouble running Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Trouble running "Kicking Butt" PushyMIDlet example" Watch "Trouble running "Kicking Butt" PushyMIDlet example" New topic
Author

Trouble running "Kicking Butt" PushyMIDlet example

William Asher
Greenhorn

Joined: Jul 23, 2009
Posts: 25
Hello. I am attempting to run the PushyMIDlet example in chapter 6 of "Kicking Butt With MIDP and MSA" and running into troubles. Has anybody successfully run this example? The code itself is freely available at http://kickbutt.jonathanknudsen.com/src/kb-ch06-nb.zip or http://kickbutt.jonathanknudsen.com/src/kb-ch06.zip (NetBeans and Sun Java Wireless Toolkit versions, respectively).

The text in the book says to enable the "Execute through OTA" option in the project "Running" properties, and then to compile and run program. The program appears to compile OK, but I get these errors in the output window:


The error mentions the .jad file. I believe it's OK - it's the .jad file automatically generated by NetBeans. Here it is:


When I try setting the Running property to "Regular Execution", the PushyMIDlet program runs OK in the emulator, but doesn't appear to have the desired behavior (which is to automatically start after it has been "registered" in the push registry and a simulated SMS message arrives on port 50000).

I'm using NetBeans 6.7.1 for this task. One further wrinkle was that I couldn't seem to open the NetBeans project in the zip file directly. Instead I chose the option to create a New Project from a "Mobile Project With MIDP Sources". Maybe my version of NetBeans is different from that which the author was using.

Does anybody know what's wrong and how I can fix this? Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Trouble running "Kicking Butt" PushyMIDlet example