简体   繁体   English

j2me应用程序中的无效应用程序错误

[英]invalid application error in j2me app

i have made a j2me in eclipse juno and WTK 2.5.2. 我在eclipse juno和WTK 2.5.2中创建了一个j2me。 complied successfully, when i run it in real device nokia give error invalid application. 编译成功,当我在真实设备诺基亚中运行它时,给出错误无效的应用程序。 use MIDP 2.0 and cldc 1.1 . 使用MIDP 2.0和cldc 1.1。

manifest file: 清单文件:

Manifest-Version: 1.0

MIDlet-Version: 1.0.0

MIDlet-1: Main,

MicroEdition-Configuration: CLDC-1.1

MIDlet-Data-Size: 0

MIDlet-Icon: logo.png, recharge.jpg

MIDlet-Name: Main

MicroEdition-Profile: MIDP-2.0

MIDlet-Permissions: javax.microedition.io.connector.http, javax.microedition.io.Connector.https

Looking at your manifest, it looks like you're missing some attributes: 查看清单,您似乎缺少一些属性:

MIDlet-1 is missing icon and class name. MIDlet-1缺少图标和类名。 It should state something like MIDlet-1: Main,myicon.png,com.mystuff.mymidlet 它应该声明类似MIDlet-1: Main,myicon.png,com.mystuff.mymidlet

MIDlet-Jar-Size is missing, probably because you haven't selected the main MIDlet in your project properties. 缺少MIDlet-Jar-Size ,可能是因为您没有在项目属性中选择主MIDlet。

MIDlet-Jar-URL is missing, again probably because you haven't selected the main MIDlet in your project properties. MIDlet-Jar-URL丢失了,再次可能是因为您没有在项目属性中选择主MIDlet。

So check your project properties. 因此,请检查您的项目属性。


Invalid Application Error also often shows up when there are attributes in the JAD/manifest file that isn't supported by the device. 当JAD /清单文件中存在设备不支持的属性时,也会经常出现“ Invalid Application Error For Nokia, this is true even when we're talking about Nokia's own invented attributes. 对于诺基亚来说,即使在谈论诺基亚自己的发明属性时也是如此。 You could use Nokia specific JAD attributes - and you'd get an Invalid Application Error on a lot of Nokia devices because they don't support this particular attribute. 您可以使用诺基亚特定的JAD属性-在许多诺基亚设备上,由于它们不支持此特定属性,因此会出现“ Invalid Application Error ”。

To test this, try removing all special attributes and only have the standard ones. 要对此进行测试,请尝试删除所有特殊属性,而仅保留标准属性。

(But in your case, it looks like you just haven't selected the main MIDlet in your project properties). (但就您而言,您似乎只是没有在项目属性中选择主MIDlet)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM