Java MIDP applications must be preverified before they can be executed on target devices. (See http://developers.sun.com/techtopics/mobility/midp/articles/setup/#compile
While attempting to preverify \\midp2.0fcs\src\example\H
.java (which compiles just fine), I get the following error:
"Error preverifying class HelloMIDlet
This is odd, considering javax/microedition/lcdui/ (which does indeed contain CommandListener.class) is a subfolder of my classpath. (If it wasn't, then the HelloMIDlet.java source obviously wouldn't have compiled in the first place.)
I did a search and found that the problem dates back to the year 2000. (Nice.) The only solution I found -- unpacking a midp.jar file and directing the classpath to a folder with its contents -- is no good, since there is no midp.jar file.
Has anyone successfully compiled HelloMIDlet.java? What is the solution to the java/lang/NoClassDefFoundE