我正在开发一个 phonegap 应用程序。我成功地为 android 开发了这个应用程序,现在我正在使用 Blackberry 部署它。我遵循 phonegap 网站 http://docs.phonegap.com/en/2.3.0/guide_getting-started_blackberry_index.md.html#Getting%20Started%20with%20BlackBerry上列出的指南
所以我只是复制示例文件夹并尝试使用命令行部署它,但我没有获得 OTAInstall 和 StanderedInstall 文件。
这是我的 cmd 输出:-
C:\Users\Dell\workspace\DSS>ant blackberry build
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\li
b\tools.jar
Buildfile: C:\Users\Dell\workspace\DSS\build.xml
blackberry:
build:
generate-cod-name:
[echo] Generated name: cordovaExample.cod
clean:
[delete] Deleting directory C:\Users\Dell\workspace\DSS\build
package-app:
[mkdir] Created dir: C:\Users\Dell\workspace\DSS\build\widget
[copy] Copying 22 files to C:\Users\Dell\workspace\DSS\build\widget
[zip] Building zip: C:\Users\Dell\workspace\DSS\build\cordovaExample.zip
build:
[exec] [INFO] Parsing command line options
[exec] [INFO] Parsing bbwp.properties
[exec] [INFO] Validating application archive
[exec] [INFO] Parsing config.xml
[exec] [INFO] Populating application source
[exec] [INFO] Compiling BlackBerry WebWorks applicatio
n
[exec] I/O Error: Cannot run program "C:\Program": CreateProcess error=2, T
he system cannot find the file specified
[exec] [ERROR] RAPC exception occurred
BUILD SUCCESSFUL
Total time: 27 seconds
C:\Users\Dell\workspace\DSS>
我在 project.properties 中所做的修改如下:-
blackberry.bbwp.dir=C:\\Program Files\\Research In Motion\\BlackBerry WebWorks SDK 2.3.1.5
playbook.bbwp.dir=C:\\Program Files\\Research In Motion\\BlackBerry WebWorks SDK for TabletOS 2.1.0.6\\bbwp
qnx.bbwp.dir=C:\\Program Files\\Research In Motion\\BlackBerry 10 WebWorks SDK 1.0.4.11
blackberry.mds.dir=C:\\Program Files\\Research In Motion\\BlackBerry Email and MDS Services Simulators 4.1.4\\MDS
blackberry.sigtool.password=prvnsharma
playbook.sigtool.csk.password=prvnsharma
playbook.sigtool.p12.password=prvnsharma
qnx.sigtool.password=prvnsharma
blackberry.sim.password=prvnsharma
请大家帮帮我。