MIDlet-1. Error in NetBeans
I have two errors in NetBeans:
Application descriptor does n开发者_开发知识库ot declare any MIDlet. Direct execution is not allowed. The manifest or the application descriptor MUST contain the attribute: MIDlet-1
The files rights - 775. Here is my MANIFEST:
MIDlet-1: Skeleton, /icons/Skeleton_icon.png, SkeletonMIDlet
MIDlet-Name: Skeleton
MIDlet-Description: Skeleton Example MIDlet
MIDlet-Vendor: Stalefish Labs
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.0
MicroEdition-Profile: MIDP-2.0
Where is my mistake? Thanks!
You didn't add the MIDlet class to your application. Right click the application in the netbeans and choose Properties and then select the Application Descriptor. Then add the MIDlet class in MIDlets tab.
you seem to miss application descriptor file - jad. It's not the same as manifest.
Check Netbeans documentation about it
Find at your NetBeans project dir nbproject, edit project.properties file and remove manifest.is.liblet= tag save and compile again and no more error.
精彩评论