我正在开发一个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
请大家帮帮我。
最佳答案
我自己解决了这个问题,将JDK从1.7降级到JDK 1.6。我不知道发生了什么事。但JDK 1.6.43以上的ant build有这些错误。
关于cordova - Phonegap Blackberry 应用程序构建不生成 StanderedInstall.zip 和 OTAInstall 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16647622/