This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Trouble running "Kicking Butt" PushyMIDlet example  RSS feed

Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 or (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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!