打包我的第一个黑莓小部件。 - 未找到 xml 文件

发布于 2024-10-07 13:39:21 字数 1656 浏览 0 评论 0原文

我正在尝试打包我的第一个黑莓小部件。如 Blackberry 网站所述:

http://docs.blackberry.com/en /developers/deliverables/10593/BlackBerry_widget_samples_Hello_world.pdf

我在 Eclipse 中编辑了文件,并尝试使用命令行打包工具创建 .cod 文件。

zip 文件的内容包括 config.xml

 Directory of C:\trash\hello

12/13/2010  03:11 PM    <DIR>          .
12/13/2010  03:11 PM    <DIR>          ..
09/29/2009  02:09 PM               544 config.xml
12/13/2010  03:11 PM                 0 file.txt
09/29/2009  02:31 PM               648 index.html
12/13/2010  02:32 PM    <DIR>          Scripts
12/13/2010  02:32 PM    <DIR>          Styles
               3 File(s)          1,192 bytes

 Directory of C:\trash\hello\Scripts

12/13/2010  02:32 PM    <DIR>          .
12/13/2010  02:32 PM    <DIR>          ..
09/29/2009  02:32 PM               172 action.js
               1 File(s)            172 bytes

 Directory of C:\trash\hello\Styles

12/13/2010  02:32 PM    <DIR>          .
12/13/2010  02:32 PM    <DIR>          ..
09/29/2009  02:15 PM                14 simple.css
               1 File(s)             14 bytes

但是 widget packeger 找不到 config.xml 文件。

C:\Research In Motion\BlackBerry Widget Packager>bbwp c:\trash\trash\hello.zip
[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating widget archive
[ERROR]                 Invalid widget archive - failed to find config.xml

I am trying to package my first Blackberry widget. as described on Blackberry site:

http://docs.blackberry.com/en/developers/deliverables/10593/BlackBerry_widget_samples_Hello_world.pdf

I edited files in Eclipse and an trying to create a .cod file with command line packaging tool.

Contents of zip files include config.xml

 Directory of C:\trash\hello

12/13/2010  03:11 PM    <DIR>          .
12/13/2010  03:11 PM    <DIR>          ..
09/29/2009  02:09 PM               544 config.xml
12/13/2010  03:11 PM                 0 file.txt
09/29/2009  02:31 PM               648 index.html
12/13/2010  02:32 PM    <DIR>          Scripts
12/13/2010  02:32 PM    <DIR>          Styles
               3 File(s)          1,192 bytes

 Directory of C:\trash\hello\Scripts

12/13/2010  02:32 PM    <DIR>          .
12/13/2010  02:32 PM    <DIR>          ..
09/29/2009  02:32 PM               172 action.js
               1 File(s)            172 bytes

 Directory of C:\trash\hello\Styles

12/13/2010  02:32 PM    <DIR>          .
12/13/2010  02:32 PM    <DIR>          ..
09/29/2009  02:15 PM                14 simple.css
               1 File(s)             14 bytes

However widget packeger cannot find config.xml file.

C:\Research In Motion\BlackBerry Widget Packager>bbwp c:\trash\trash\hello.zip
[INFO]                  Parsing command line options
[INFO]                  Parsing bbwp.properties
[INFO]                  Validating widget archive
[ERROR]                 Invalid widget archive - failed to find config.xml

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文