jad 文件中的 cod 部分太多

发布于 2024-08-04 05:46:51 字数 336 浏览 2 评论 0原文

我创建了一个黑莓应用程序,但在将其发布到我的网站上时遇到问题。我已经上传了 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

彼岸花似海 2024-08-11 05:46:51

您可以尝试使用 blackberry ant 工具,任务将如下所示:

<target name="produce_ota">
   <mkdir dir="${ota.dir}" />
   <jadtool input="your_app_name.jad" destdir="${ota.dir}">
       <fileset dir="${build.dir}" includes="*.cod" />
   </jadtool>
</target>

这将产生所有需要 cod 部分和 jad 文件到 ${ota.dir} 假设 ${build.dir} 目录中将有构建的应用程序。

查看slashdev.ca 教程 - 使用 Ant 进行 Blackberry 开发&日食

You may try with blackberry ant tools, task will look like this:

<target name="produce_ota">
   <mkdir dir="${ota.dir}" />
   <jadtool input="your_app_name.jad" destdir="${ota.dir}">
       <fileset dir="${build.dir}" includes="*.cod" />
   </jadtool>
</target>

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

来世叙缘 2024-08-11 05:46:51

由于某种原因,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文