jad 文件中的 cod 部分太多
我创建了一个黑莓应用程序,但在将其发布到我的网站上时遇到问题。我已经上传了 jad、jar、alx 和 cod 文件(我从中提取了全部内容)。我还添加了缺少的 MIME 类型。但是,当我尝试通过请求 jad 文件来下载应用程序时,收到 500 错误,详细信息表明文件 myproject-30.cod 丢失。
所以我查看了 cod 文件列表...果然,它们从 0 到 29。没有 30、31 或以上。然而,在 jad 文件中,有多达 110 个 cod 文件的引用。
我的问题是:如何配置 eclipse 来正确生成 jar 文件?或者,如何修改 jad 文件以删除对 30 多个 cod 文件的引用?或者是cod文件丢失了?
I created a blackberry application but I am having problems publishing it on my web site. I have uploaded the jad, jar, alx and cod file (from which I extracted the whole content). I also added the missing MIME types. But when I try to download the application by requesting the jad file, I get a 500 error with the details saying that the file myproject-30.cod is missing.
So I looked at the list of cod file... sure enough, they go from 0 to 29. No 30, 31 or above. However, in the jad file, there are references for cod files for up to 110.
My question is: how can I configure eclipse to produce the jar file properly? Or, alternatively, how can I modify the jad file to delete references to the 30+ cod files? Or maybe it is that the cod file is missing files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以尝试使用 blackberry ant 工具,任务将如下所示:
这将产生所有需要 cod 部分和 jad 文件到 ${ota.dir} 假设 ${build.dir} 目录中将有构建的应用程序。
查看slashdev.ca 教程 - 使用 Ant 进行 Blackberry 开发&日食
You may try with blackberry ant tools, task will look like this:
This will produce all needed cod parts and jad file to ${ota.dir} assuming there will be built application in ${build.dir} directory.
Check out slashdev.ca tutorial - Blackberry development with Ant & Eclipse
由于某种原因,rapc 编译工具没有重新创建 JAD 文件。基本上,它是几周前创建的,仅此而已,所以显然它不是最新的。为了强制 eclipse 插件重新创建该文件,我只是将其删除。新文件现在工作正常。
For some reason, the JAD file was not recreated by the rapc compile tool. Basically, it was created a couple of week ago and that's it, so clearly it was not up-to-date. To force the eclipse plugin to recreate the file, I simply deleted it. The new file is now working fine.