“申请无效。删除?”仅当使用诺基亚 SDK 编译时
我正在为我的大学开发一款软件,目前正在尝试实现 NFC 功能,这需要我从标准 Sun 无线工具包平台(通过 NetBeans)到诺基亚平台(也通过 NetBeans 实现)。
问题是,每当我使用诺基亚平台实现编译代码并运行该程序时,在我拥有的诺基亚手机或模拟器中,手机都会显示一个框,指出“无效的应用程序。删除?”回答是/否。这将停止应用程序的安装。奇怪的是,如果我使用 Sun 平台实现编译完全相同的代码,它在诺基亚手机上运行时不会出现任何问题。我已经使用两种不同的诺基亚 SDK(Series 40 Nokia 6212 NFC SDK 和 Series 40 第 5 版 SDK)进行了尝试,得到了相同的结果。
诺基亚 SDK 有何不同之处?
I'm developing a piece of software for my University and am currently attempting to implement NFC functionality which requires me to move from my standard Sun wireless tool-kit platform (implemented through NetBeans) to a Nokia platform (also implemented through NetBeans).
The problem is, whenever I compile the code with the Nokia platform implementation and run the program, on the Nokia phone I have or in the emulator, the phone displays a box stating "Invalid Application. Delete?" with a yes/no answer. This stops the installation of the application. The strange part is that if I compile the exact same code with the Sun platform implementation it runs without any issues on the Nokia phone. I have tried this with two different Nokia SDKs (the Series 40 Nokia 6212 NFC SDK and the Series 40 5th Edition SDK) with the same results.
What is the Nokia SDK doing differently?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
使用 Sun 平台创建的项目与在 Nokia 平台创建的项目之间似乎存在某种差异。
虽然最初使用Sun平台创建的原始程序使用Nokia平台编译导致应用程序无效,但当我使用Nokia平台从头开始创建一个新项目并仅将原始程序的源代码复制到该程序上时,该程序就工作了。两者之间的 JAD/manifest 文件没有明显差异。
There seems to be some kind of discrepancy between a project created using a Sun platform and a project created in a Nokia platform.
Although the original program, initially created with the Sun platform, compiled with the Nokia platform caused the application to be invalid, when I created a new project from scratch using the Nokia platform and just copied the source of the original program over the program worked. There is no discernible difference in the JAD/manifest files between the two.
如果您复制了源代码,则可能没有复制“manifest.midlets”,即告诉操作系统要创建哪些“形式”。您通常会在项目属性中找到它。
(例如,在 NetBeans IDE - 应用程序描述符中,“Midlets”选项卡 - 它不应该为空)。
If you've copied source code, you may have not copied the "manifest.midlets", i.e. tells the OS which "forms" to create. You'll usually find this in the project properties.
(e.g. in NetBeans IDE - Application Descriptor, "Midlets" tab - it shouldn't be empty).
确保以下属性(键:值对)位于 JAD 文件中以及 JAR 文件中的清单文件中:
Make sure that the following attributes (key:value pairs) are in the JAD file and also the manifest file in the JAR file: