Sunday, August 24, 2008

MIDlet class specified was not found

This is my first issue with the Java SunSPOT, out-of-the-box. From Netbeans 5.5, when you start a new Sun SPOT Application, a template application is always created. The template application builds and deploys correctly-- assuming you followed all the installation instructions and wrestled away all the PATH or ENV issues-- and should print, "Hello World!", followed by the address of the SPOT client's radio. However, the latter part does not happen. Instead, you get the following error:

java.lang.IllegalArgumentException: MIDlet class specified, org.sunspotworld.src/org/sunspotworld/StartApplication, was not found

What's the problem? Well, this may be something I screwed up in my setup, but the manifest file is set up wrong! Here's what I get with a new project and no alterations:

MIDlet-1: src/org/sunspotworld/StartApplication, , org.sunspotworld.src/org/sunspotworld/StartApplication

The line, written correctly, should read:

MIDlet-1: src/org/sunspotworld/StartApplication, , org.sunspotworld.StartApplication

No comments: