打包我的第一个Blackberry小部件。 - 找不到xml文件

时间:2010-12-13 20:18:07

标签: blackberry widget packaging

我正在尝试打包我的第一个Blackberry小部件。正如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

0 个答案:

没有答案