开发者

MIDlet-1. Error in NetBeans

开发者 https://www.devze.com 2023-04-06 21:21 出处:网络
I have two errors in NetBeans: Application descriptor does n开发者_开发知识库ot declare any MIDlet. Direct execution is not allowed.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消